I need to repeat certain number and continue till the range end | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I need to repeat certain number and continue till the range end

https://code.sololearn.com/cq0628pUU07R/?ref=app

1st Sep 2023, 8:21 AM
Thile Dorje Lama
Thile Dorje Lama - avatar
3 Answers
+ 4
To use a variable just change line 8 in the code provided by Mirielle to: if num in a: https://code.sololearn.com/cIkhU5q5M49G/?ref=app
1st Sep 2023, 9:24 AM
Keith
Keith - avatar
+ 1
Need to compare a variable number
1st Sep 2023, 8:39 AM
Thile Dorje Lama
Thile Dorje Lama - avatar
0
Thank You so much, I try your code...
1st Sep 2023, 3:37 PM
Thile Dorje Lama
Thile Dorje Lama - avatar