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.
9 ответов
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
0
I spoke to soon. I still haven't found the problem 😭
0
print("%f" %(mileCharge))
Edit:
Am not sure, guessing
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
0
is this what your trying to do?:-
mileCharge = 12.12 # just some random number to use as an example
print("{:.2f}%".format(mileCharge))
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..
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!
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........
0
You're great. Thanks!