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

16th Sep 2020, 7:46 AM
Deshaan Pillay
Deshaan Pillay - avatar
7 Respuestas
+ 6
Please share your code here with the question
16th Sep 2020, 7:47 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 6
Wrote pretty much the same as Abhay in the comments of your code. Good luck
16th Sep 2020, 7:57 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 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
16th Sep 2020, 7:50 AM
Abhay
Abhay - avatar
+ 1
okay so the indentation is the issue?
16th Sep 2020, 7:52 AM
Deshaan Pillay
Deshaan Pillay - avatar
+ 1
Yup
16th Sep 2020, 7:52 AM
Abhay
Abhay - avatar
+ 1
thanks a lot, really appreciate it
16th Sep 2020, 7:53 AM
Deshaan Pillay
Deshaan Pillay - avatar
+ 1
perfect thanks a lot 🥳🥳
16th Sep 2020, 8:01 AM
Deshaan Pillay
Deshaan Pillay - avatar