hi i need help getting started with this Python code: Write a program that prints the U.S. presidential election years from 1792 to present day, knowing that such elections occur every 4 years. Hint:...


hi i need help getting started with this Python code:


Write a program that prints the U.S. presidential election years from 1792 to present day, knowing that such elections occur every 4 years. Hint: Initialize your loop variable to 1792. Don't forget to use <= rather="" than="=" to="" help="" avoid="" an="" infinite="">


year = 1792
current_year = ?


while year ? ??:
# Print the election year
year = year + ?



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here