0
Loops in python
Hi, the question is to write a function that gets a number and print the amount of asterisks every line (* ** *** etc) And then write a loop thorough the first function. I added 2 solutions, but there's no output, why? https://code.sololearn.com/cu6OZvy9GgFl/?ref=app https://code.sololearn.com/cmSrc5fzW6RW/?ref=app
5 Answers
+ 3
Liat123 I believe you wanted something like this
https://code.sololearn.com/c07EMK8nokea/?ref=app
+ 2
â The last print() is not correctly indented
â print_atars() is not defined
â there are no line breaks
â You did not call any function
0
The last print is under the last for loop where's the mistake?
Print_stars define at the start..?
There're no line breaks where?
I didn't call the function where?
Sorry for not understanding and thank you
0
Thank you so much!
Can you explain why you used "print()" and "print("\n\n")"?
0
Also, the exercise was to put stars like the number I put in the input.
When I put 5, it only shows 4 rows. How to change it?