x = 42.44444 print("all {2:.3f} good {0} eat {1}".format("dogs","shoes",x))
ValueError: Unknown format code 'f' for object of type 'str
1 | initial version |
x = 42.44444 print("all {2:.3f} good {0} eat {1}".format("dogs","shoes",x))
ValueError: Unknown format code 'f' for object of type 'str
x = 42.44444 print("all {2:.3f} good {0} eat {1}".format("dogs","shoes",x))
ValueError: Unknown format code 'f' for object of type x = 42.44444
print("all {2:.3f} good {0} eat {1}".format("dogs","shoes",x))
x = 42.44444
42.44444
print("all {2:.3f} good {0} eat {1}".format("dogs","shoes",x)) ValueError: Unknown format code 'f' for object of type 'str
This is Sage in Linux Mint
x = 42.44444
print("all {2:.3f} good {0} eat {1}".format("dogs","shoes",x))
ValueError: Unknown format code 'f' for object of type 'strThis is Sage in Linux Mint