Computers and Technology

HELP!! I keep getting an EOFError on line 6 while trying to run my code in python. my code-

line 1: num = int(input("Enter a number: "))

line 2: c=0

line 3: sum=0

line 4: while (num<100):

line 5: sum=sum+num

line 6: num = int(input("Enter a number: "))

line 7: c=c+1

line 8: print("Sum: " +str(sum))

line 9: print("Numbers Entered: "+str(c))

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:40, penelopymorales24
Mariah was working on a multimedia presentation that included both video and audio files. the file was huge, and she wanted to send it to her coworker in another office. she needed to reduce the size of the file so that it could be transmitted faster. the utility she used to do this was
Answers: 2
image
Computers and Technology, 22.06.2019 21:30, elsauceomotho
Im doing this last minute and literally none of my neighbors or people that my dad works with use excel so if anyone could me make up an example
Answers: 1
image
Computers and Technology, 22.06.2019 23:00, brooklynmikestovgphx
Suppose s, t, and w are strings that have already been created inside main. write a statement or statements, to be added to main, that will determine if the lengths of the three strings are in order by length, smallest to largest. that is, your code should determine if s is strictly shorter than t, and if t is strictly shorter than w. if these conditions hold your code should print (the boolean value) true. if not, your code should print false. (strictly means: no ties) example: if s, t, and w are "cat", "hats", and "skies" your code should print true - their lengths are 3-4-5; but if s, t, and w are "cats" "shirt", and "trust", then print false - their lengths are 4-5-5 enter your code in the box below
Answers: 2
image
Computers and Technology, 24.06.2019 01:30, Cinders13
How can you make your column headings stand out?
Answers: 1
Do you know the correct answer?
HELP!! I keep getting an EOFError on line 6 while trying to run my code in python. my code-

Questions in other subjects:

Konu
Chemistry, 05.10.2019 02:00