+ 1

I can't find the solution for this👇

Casepaper = input() year == int(Casepaper ) if year > 2015: print ("New patient. Do not throw away") else print ("Old patient.)

5th Apr 2020, 6:54 AM
NIDH
15 Respuestas
+ 2
Just put 4 spaces after if statement it will work
6th Apr 2020, 10:02 AM
Vijay(v-star🌟)
Vijay(v-star🌟) - avatar
+ 1
print ("Old patient. ")
5th Apr 2020, 6:58 AM
Oma Falk
Oma Falk - avatar
+ 1
indent
5th Apr 2020, 6:58 AM
durian
durian - avatar
+ 1
There are 4 problems 1. There should be one "=" in 3rd line. 2. Indent after if in 4th line and after else in 6th line 3. Colon after else 4. 6th line should be like - print("Old patient") ((With qoutes))
6th Apr 2020, 10:54 AM
Varun Vaswani
Varun Vaswani - avatar
+ 1
# correct program casepaper=input () year=int (casepaper) if year>2015: print ("New patient.Do not throw away") else: print ("old patient.")
6th Apr 2020, 3:18 PM
Ashish Singh
Ashish Singh - avatar
0
Indent error occurred on line 4
5th Apr 2020, 6:59 AM
NIDH
0
How to solve it?
5th Apr 2020, 6:59 AM
NIDH
0
tab in line 4
5th Apr 2020, 7:00 AM
Oma Falk
Oma Falk - avatar
0
just if condition: print("something") else: print("something else")
5th Apr 2020, 7:01 AM
durian
durian - avatar
0
#I can't find the solution for this👇 year = int(input("Casepaper")) if year > 2015: print ("New patient. Do not throw away") else: print ("Old patient.")
5th Apr 2020, 7:04 AM
Oma Falk
Oma Falk - avatar
0
Thank you everyone . Isolved it
5th Apr 2020, 7:07 AM
NIDH
0
#I can't find the solution for this👇 year = int(input("Casepaper")) if year > 2015: print ("New patient. Do not throw away") else: print ("Old patient.")
6th Apr 2020, 5:12 PM
FulPlan
FulPlan - avatar
0
I can't find the solution for this👇 Casepaper = input() year =int(Casepaper ) if year > 2015: print ("New patient. away") else: print ("Old patient.)
6th Apr 2020, 8:37 PM
Mahmoud Abo Elsaoud
Mahmoud Abo Elsaoud - avatar
0
Errors. The code is incorrect
7th Apr 2020, 5:01 AM
Adhulraj K R
Adhulraj K R - avatar
- 1
Print("Old patient")
5th Apr 2020, 10:20 AM
Ankit Singh
Ankit Singh - avatar