Can anyone solve this | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can anyone solve this

Use a for loop to print the following reverse number pattern. Make sure that the user entered input for variable n and k are 5 https://code.sololearn.com/cB8449tKJQ0X/?ref=app

4th Jul 2022, 3:36 PM
Tshegofatso Sekgothe
3 Answers
+ 4
You did not use n or k and you didn't specify the range argument. The range function is used like range(4) for example. Go back to the lesson and pay close attention to how range() is used.
4th Jul 2022, 3:45 PM
Lisa
Lisa - avatar
+ 1
You didn’t use k at all. Maybe you don’t need it? If you delete line 2, your code will work.
4th Jul 2022, 6:33 PM
Ромари
Ромари  - avatar
0
It's work fine
6th Jul 2022, 3:22 PM
N. Vimukthi Dilshan Fernando