0
Could someone help me debug an ID generating program I'm trying to make for practice in Py3
it says there's a syntax error in line 11, I've made the code public. Any help would be much appreciated https://code.sololearn.com/c4uQ8cwYdZVb/?ref=app
7 Answers
+ 6
Please share your code here with the question
+ 6
Wrote pretty much the same as Abhay in the comments of your code.
Good luck
+ 1
You can't use elif without a previous if
if Byear <= 1999:
Yob = Byear - 1900
elif Byear==2001:
Yob = '0' + str(Byear - 2000)
elif Byear==2002:
Yob = '0' + str(Byear - 2000)
elif
Should be
if Byear <= 1999:
Yob = Byear - 1900
elif Byear==2001:
Yob = '0' + str(Byear - 20)
elif Byear==2002:
Yob = '0' + str(Byear - 2000)
elif
+ 1
okay so the indentation is the issue?
+ 1
Yup
+ 1
thanks a lot, really appreciate it
+ 1
perfect thanks a lot đ„łđ„ł