+ 1
I need some help or rather tips on the code
Popsciles code It's I've tried but couldn't come up with a solution amd i want some help and guidance on it It would be better if y'all only help with tips and not the entire solution as i want to do it my self thank you https://code.sololearn.com/cNfzt96POW9U/?ref=app
3 Answers
+ 4
Apart from changes pointed by ProàŠČàŠŻàŠŒ à€źà€żà€¶à„ra [đstudies] , there are several other things that you are doing wrong here,
1) condition in the if statement is will return false even when it shouldn't ( fix: just keep the first condition or use an *or* operator instead of *and*)
2) the messages that you are displaying are not what the question wants you to display, as your code would be checked by an online judge instead of a human so output should be STRICTLY similar to what is described.
After all the fixes your code should look like thisđ
https://code.sololearn.com/cWSj47e419jZ/?ref=app
+ 3
'as' is used after 'with'
if i know what you're trying to do, you can do it like
s = siblings
another thing: you didn't use a colon (:) after the if statement
+ 2
Thank you you guys
Ive managed it here is it
https://code.sololearn.com/cNfzt96POW9U/?ref=app