How do add another object(+1) into a list by using a if(yes) and else(no)? 😬 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do add another object(+1) into a list by using a if(yes) and else(no)? 😬

Trying to add more than one name into the list by using if else.

22nd Oct 2019, 11:23 AM
W. Khalid
2 Answers
+ 3
Please share your code here, so that we can have a clear idea of what you did so far.
22nd Oct 2019, 5:22 PM
Lothar
Lothar - avatar
+ 1
While loop with a break statement in case of "No"
22nd Oct 2019, 11:28 AM
Trigger
Trigger - avatar