Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question: While
#5
You never did any string to int conversion so 3 + 7 will never = 10.
"3" + "7" = "37".

If what you want is "3" + "7" = "310" then you can do that (but I have no clue why you want to).
You need to accurately explain your input and desired output and how it differs from what you are getting.
I erased num_temp in your code because it didn't do anything.
Reply


Messages In This Thread
Question: While - by Truman - Jan-16-2018, 11:57 PM
RE: Question: While - by Mekire - Jan-17-2018, 06:14 AM
RE: Question: While - by Truman - Jan-17-2018, 08:18 PM
RE: Question: While - by metulburr - Jan-17-2018, 08:26 PM
RE: Question: While - by Mekire - Jan-17-2018, 08:28 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020