+ 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

28th Aug 2020, 4:36 AM
Blue Dot.
Blue Dot. - avatar
3 Respuestas
+ 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
28th Aug 2020, 5:01 AM
Arsenic
Arsenic - avatar
+ 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
28th Aug 2020, 4:48 AM
Bot
Bot - avatar
+ 2
Thank you you guys Ive managed it here is it https://code.sololearn.com/cNfzt96POW9U/?ref=app
28th Aug 2020, 6:41 AM
Blue Dot.
Blue Dot. - avatar