Python Forum
Sorry to bother, I've occured a newbiw question.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sorry to bother, I've occured a newbiw question.
#1
You see, as I type in the codes below, Python said that there was an ValueError. But what's below is literaly what I copied from the book, still didn't work. So I tried to type in this codes manully, but after I typed "a = int(input())" and press "Enter" to make a new statement, the prompt didn't show up. Next, I tried to type these in Notepad++, and saved as ".py", When I ran it, it said that there was an "invalid syntax". Is anything with the code? I'm about to lose my mind, please help me. Sad Sad Sad Sad

a = int()
b = int()
a = int(input())
b = int(input())
print(a + b)
Reply


Messages In This Thread
Sorry to bother, I've occured a newbiw question. - by Ethan4216 - Aug-30-2019, 04:25 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  why this error occured in recursion ashishraikwar 1 1,791 Apr-24-2020, 11:12 AM
Last Post: buran
  'Exception Has occured: UnBoundLocalError' caston 1 2,480 Jun-12-2019, 02:33 PM
Last Post: perfringo

Forum Jump:

User Panel Messages

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