0

Can any one help me with this😊

https://code.sololearn.com/cghZXrONsaAy/?ref=app Sample input is 1 Output requred is 3 In short if the input number ,n is odd the result would be thrice elif n is even the output shoulb be twice of n Please help or give me hint related to this......

17th Oct 2020, 4:01 PM
OTAKU NO.1
OTAKU NO.1 - avatar
6 Answers
+ 4
U don't need brackets for if and elif statements in python.
17th Oct 2020, 4:03 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 4
codemonkey correct
17th Oct 2020, 4:05 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 2
Thank you code monkey for help😊
17th Oct 2020, 4:06 PM
OTAKU NO.1
OTAKU NO.1 - avatar
0
I have tried without brackets also....
17th Oct 2020, 4:04 PM
OTAKU NO.1
OTAKU NO.1 - avatar
0
Oh yeah i think input may be integer
17th Oct 2020, 4:05 PM
OTAKU NO.1
OTAKU NO.1 - avatar
0
Yes i really forgot cause my exams were going on and now i was not brushed up.... But thanks alot codemonkey
17th Oct 2020, 4:10 PM
OTAKU NO.1
OTAKU NO.1 - avatar