Answers
>
Python
>
Mentoring
>
Article
How would you write a while loop to print all even numbers from 1-10?
i = 2while i <= 10: print(i) i += 2
CL
Answered by
Chantelle L.
•
Python tutor
1929 Views
See similar Python Mentoring tutors
Related Python Mentoring answers
All answers ▸
Write a program that computes the sum of all numbers up to a input number n
how to compute the factorial of a number.
What is the difference between using range() and a list of values?
How do For Loops work?