RESOLVED Python: String Formatting with % part 2


#1

The code crashes after my third question input, and it seems to have a problem with the print line in line 5 just after the first %, some comma in the string. I followed the instructions, scanned the code, and cannot understand why it's crashing.

`


#2

The placeholder needs a data type token:

%s  => string data

%d  => integer data

%f  => float data

%r  => representation (an object)

#3

I thought they were pluralizing. Oof. Many thanks.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.