Computers and Technology
Computers and Technology, 05.06.2021 22:20, 23gordns

I have some code here in PYTHON 3, print("Is your number greater or less than 50? Lets see!") num = int(input("Enter an positive integer from 0 to 100: ")) if num > 100: print("Greater than 100") if num < 100: print("less than 100") if num > 50: print("Greater than 50") if num < 50: print("Less than 50") if num > 40: print("greater than 40 but less than 50") print("calculating...") print("your inputed number is" + num) print("thank you for playing!") it says it has a error Traceback (most recent call last): ValueError: invalid literal for int() with base 10: '' !Error: Unknown error Can you check my code? Thanks

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 01:50, rhonda45801
Free points just awnser this. what should i watch on netflix
Answers: 2
image
Computers and Technology, 23.06.2019 21:20, nathanfletcher
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
image
Computers and Technology, 24.06.2019 15:30, lizziesuks
What is the function of compilers and interpreters? how does a compiler differ from an interpreter?
Answers: 2
image
Computers and Technology, 24.06.2019 20:00, Cookie320
Write c++programs for the following problem: let the user enter two numbers and display which is greater. !
Answers: 1
Do you know the correct answer?
I have some code here in PYTHON 3, print("Is your number greater or less than 50? Lets see!") num =...

Questions in other subjects:

Konu
Social Studies, 20.04.2020 18:52
Konu
Mathematics, 20.04.2020 18:53