Help me solve this (using loop) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Help me solve this (using loop)

What I want to do is to output the amount that each number has, using loop

2nd Feb 2023, 8:09 PM
sunshine
sunshine - avatar
9 Answers
+ 6
sunshine , here is a very basic approach without dictionary or set: https://code.sololearn.com/c8gni3ZN2JIN/?ref=app
3rd Feb 2023, 6:21 PM
Lothar
Lothar - avatar
+ 2
if number in numbers:
2nd Feb 2023, 8:32 PM
Solo
Solo - avatar
+ 1
It's kind of blank, but I tried to search on the internet and haven't found anything that could help me
2nd Feb 2023, 8:10 PM
sunshine
sunshine - avatar
2nd Feb 2023, 9:37 PM
Stefanoo
Stefanoo - avatar
+ 1
Lothar, ok and thank you for the help :)
3rd Feb 2023, 6:57 PM
sunshine
sunshine - avatar
0
Mirielle, can you show me the shorter solution? I would like to see it :)
2nd Feb 2023, 8:54 PM
sunshine
sunshine - avatar
0
Stefanoo thank you for the solution :)
2nd Feb 2023, 9:41 PM
sunshine
sunshine - avatar
0
Can you teach me how to do For loop .... Addition, multiplication etc
4th Feb 2023, 2:23 PM
Malaika Milli
Malaika Milli - avatar
0
I am the beginners Soo 🙋
4th Feb 2023, 2:24 PM
Malaika Milli
Malaika Milli - avatar