Click here to Skip to main content
15,881,624 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
suppose in a train ticket program if 4 members travel how to add the their names tha t number of times
Posted
Updated 6-Dec-15 21:59pm
v2
Comments
OriginalGriff 7-Dec-15 2:37am    
What have you tried?
Where are you stuck?
What help do you need?

Remember, we can't see your screen, access your hard drive, or read your mind - we only get exactly what you tell us to work from. So we don't know what the rest of your code is doing, or how it does it!

1 solution

Use a loop or a list comprehension[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900