+ 2
Another question on basic python
Here is another program that will not work. Please help me, I will appreciate it. student =input("What is your student number?") if student == 1010: print("Welcome") elif student == 1111: print("Hello", student) else: ("sorry")
4 Respuestas
+ 3
You need to convert the input to an integer as it will be a string by default: student = int(input('...'))
+ 2
Check out the code below:
https://code.sololearn.com/ci4X0V5KR757/?ref=app
+ 2
Markie Alicia You can edit your posts. Click on the three dots on the top right corner and you'll see the option.
0
*print("sorry")