Find a tutor
How it works
Prices
Resources
For schools
Become a tutor
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
1378 Views
See similar Python Mentoring tutors
Related Python Mentoring answers
All answers ▸
Whats the output of "for i in "hello world": print(i)" and why/how is this achieved
What is the difference between DFS and BFS? Where can I apply each?
How do I check if a number is prime using a python program?
What would you expect to be the output of the following code snippet: `a = [1, 2, 3]; b = a; b[1] = 4; print(a); print(b);`, and why?
We're here to help
Contact us
Message us on Whatsapp
+44 (0) 203 773 6020
Company Information
Careers
Blog
Subject answers
Become a tutor
Schools
Safeguarding policy
FAQs
Using the Online Lesson Space
Testimonials & press
Sitemap
Popular Requests
Maths tutor
Chemistry tutor
Physics tutor
Biology tutor
English tutor
GCSE tutors
A level tutors
IB tutors
Physics & Maths tutors
Chemistry & Maths tutors
GCSE Maths tutors
© MyTutorWeb Ltd 2013–2025
Terms & Conditions
|
Privacy Policy
CLICK CEOP
Internet Safety
Payment Security
Cyber
Essentials
Cookie Preferences