Question: Create one for-loop for each of the goals listed below: prints the numbers 0-19 prints the numbers 2-6 prints the numbers 0-25 counting by 5s
Create one for-loop for each of the goals listed below:
prints the numbers 0-19
prints the numbers 2-6
prints the numbers 0-25 counting by 5s
prints the numbers 40-60 counting by 2s
Create one for-loop for each list below that loops through them and prints each item in the list:
students = ["Mary","Jane","Tom","Curt"]
animals = ["bear","goat","pig","bat","hippo"]
ages = [6,2,8,4,10,9]
temperatures = [88.7, 80.0, 82.2, 86.9]
Create a for-loop for each list below that loops through them and prints the first character of each item in the list:
students = ["Mary","Jane","Tom","Curt"]
animals = ["bear","goat","pig","bat","hippo"]
trees = ["sycamore","maple","oak","poplar","walnut"]
sec290 = ['Friday','Unity','Ninja']
For each condition defined below, you are going to create a while loop that continues until that condition is met:
Continue until a variable called isSunny is True.
Continue until the user types 'q' on the keyboard.
Continue until an incrementing number, which started at 0, reaches 5.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
