Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 6
Solution of challenges
Questions asked in challenges do not provide their solution after it is completed . Whenever I am wrong ,i want to know why and how can i correct it so that i do not make same mistake again. But they provide only answers not solution. What should i do, how may i know the solutions??
14 Answers
+ 6
Anushka Jaiswal
Ohh sorry , I didn't get that in the first place.
Anyways if you are unable to get the logic of any code it's best to go line by line (something like a dry run but on a notebook not on IDE) that way you will get to any conclusion.
And if you still face problems, copy and paste the code in sololearn code playground and post a question in QnA section
That way others would be able to help you..
+ 8
Actually the correct answers are shown after your opponent completes the challenge too.
Along with the results, its shown which questions you did wrong and also their correct answers.
+ 6
Do practice for Challenges solutions u have to learn basics solve them after match
+ 5
♨️♨️ thanks 🙂
+ 4
Anushka Jaiswal U can search same topics Questions on Google u will find solution but if u have doubt's in any questions u can ask on Discussion box
+ 3
ADITYA KHANDELWAL i want to know solutions, even if i know answers i don't know how is that the correct answer?? Want to know the logic behind it.
+ 3
Anushka Jaiswal didi,
Take a screenshot of problem and post it in your feed. Then ask a question with link that post.
+ 3
Slick i get that👍🙏
+ 3
Ask the community.
+ 2
Thats when you take out the debugger and single step through the program while watching important variables. If you follow it one step at a time you will always see exactly why you got something wrong. It'll just take a bit longer
+ 2
🇮🇳Vivek🇮🇳 brother i know they provide answers, but they do not provide solutions , logic , like how did it happened?
+ 1
Because they already made a whole app. What more do you want?! If you are unable to implement it, I feel like you can't complain about it and if you can, then what are you waiting for?
0
players = ["Alice", "Bob", "Charlie", "David", "Eve", "Frank"]
#Create 3 lists with 2 players each
#Use slicing to create a list for Group 1
g1=players[0:2]
#Use slicing to create a list for Group 2
g2=players[2:4]
#Use slicing to create a list for Group 3
g3=players[4:6]
print("Group 1:",g1)
#display the 1st group
print("Group 2:",g2)
#display the 2nd group
print("Group 3:",g3)
#display the 3rd group
0
The above code runs errors. It says the .group name's are missing quotes