• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
0

Noob at Python

So how do I make in while loop? Display: * ** *** **** *****

pythonpython2
6th Jul 2017, 8:34 AM
Joseph Adrian Padriga
Joseph Adrian Padriga - avatar
1 Answer
+ 5
n = 0 while n <= 5: print("*"*n) n += 1
6th Jul 2017, 8:44 AM
Maya
Maya - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Excuse me, why do they always ask us to input without telling us what it is for in python.
2 Votes
Should i learn python more or HTML?
2 Votes
how much time will it take to learn python OOP if i spend 1 hour everyday
0 Votes
C++ Vectors
0 Votes
Active learner
0 Votes
Code challenge
0 Votes
A Little Question Here!
1 Votes
Does solving a code coach actually give XPs?
2 Votes
Is it good for student to study C++ first?
0 Votes
(Resolved) Error: Gcc undefined reference to sha 256 đŸ™„đŸ€ŠđŸœâ€â™€ïž
1 Votes