0

EOF while scanning triple-quoted string literal

print("%.f" % mileCharge) I thought it looked good... What's wrong?... Python is about to make me cry.

6th Mar 2020, 9:48 PM
Anna
9 Answers
0
I think I figured it out... Python upsets me because it tells me where the problem is (a line number) - but that's not really where the problem is! Thanks though guys
6th Mar 2020, 9:57 PM
Anna
0
I spoke to soon. I still haven't found the problem 😭
6th Mar 2020, 9:59 PM
Anna
0
print("%f" %(mileCharge)) Edit: Am not sure, guessing
6th Mar 2020, 10:25 PM
Jayakrishna 🇮🇳
0
I was able to find the mistake somewhere else. You trying to help me instantly made me feel better - thank you. Learning Python while pregnant isn't a good mix (hormones × frustration) lol
6th Mar 2020, 10:33 PM
Anna
0
is this what your trying to do?:- mileCharge = 12.12 # just some random number to use as an example print("{:.2f}%".format(mileCharge))
6th Mar 2020, 10:40 PM
rodwynnejones
rodwynnejones - avatar
0
Is that you shared code snippet is not correct? Am not much know about python.. It's better to share some more code or link.. If you answer, your own question before someone else answer, then it cames out of unanswered. So SL answerers who offer help think it it already answered and may not see in.. Or it take time to get answered.. I see it to know answer.. Hope you understood my point..
6th Mar 2020, 10:41 PM
Jayakrishna 🇮🇳
0
I think I understand: show more code for better help. And: if I answer my own question it's hard for others to help me. Thanks!
6th Mar 2020, 11:16 PM
Anna
0
You may be understand half only. You can answer, but if you open q/a section, there you can see left side, for every question, number of upvotes, and number of answers. so if it is not 0 or 1 answers , then assume it is already answered so may not check in details.. So better to put all your views in description and wait some other can answer. And Its my view only.. Hoping, am not wasting your time with reply and hope it helps you some.. And you're Wel come........
7th Mar 2020, 6:35 AM
Jayakrishna 🇮🇳
0
You're great. Thanks!
7th Mar 2020, 3:09 PM
Anna