+ 1
Having output issue during creating a Birthday Person name. Help me out..
BirthDate = int(input()) if BirthDate = 16 print("its sohams BirthDay") elif: BrithDate = 4 print("its mayas BirthDay") Code is this
6 Answers
+ 3
Soham Dengale ,
here is the code after some clean up:
BirthDate = int(input())
if BirthDate == 16: # comparison needs double equal ==
print("its sohams BirthDay") # line needs to be indented
elif BirthDate == 4: # comparison needs double equal ==
print("its mayas BirthDay") # line needs to be indented
i have seen in your profile, that you already have started with a python tutorial. may be it is helpful to repeat some parts of this totorial, to get more familiar with it.
happy coding and good success!
+ 4
Soham Dengale ,
it is better to post it in the q&a section. doing so, you may get multiple answers. this will gives you a more broad view on things.
happy coding!
+ 3
You have problems with the very basics of Python. Please take your time and do some lessons. Especially there are missing
- Indents are part of the language they have to be applied eg. after if, elif.
- if <expressoin> :
- elif <expression>:
Please ... the first 4 lessons of Python basics take 1 or 2 hours. You should do/repeat them. At least the 4th one.
+ 1
Thanks man
+ 1
Can i message you if I need help lothar
0
Not understood