The loop you have makes the first two iterations of the loop pointless, as each time you loop, you are reassigning new numbers to the three number variables. As a result, only the numbers entered in the last iteration of the loop are ever used for anything. I think this would make more sense:

Copynumbers = []

for i in range(3):
    input = int(input("Enter number: "))
    numbers.append(input)

This will give you a list called numbers with 3 numbers in it entered by the user. Then you can do what you want with them. Having said that, you really don't need a for loop to do this. As Craig Burgler mentioned.

Alternatively(though this doesn't use range...):

Copynumber1 = 0
number2 = 0
number3 = 0

for i in (number1, number2, number3):
    i = int(input("Enter number: "))
Answer from Totem on Stack Overflow
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ python_for_loops.asp
Python For Loops
Python Examples Python Compiler ... Q&A Python Bootcamp Python Certificate Python Training ... A for loop is used for iterating over a sequence (that is either a list, a tuple, a dictionary, a set, or a string)....
๐ŸŒ
Python
wiki.python.org โ€บ moin โ€บ ForLoop
ForLoop
for x in range(0, 3): print("We're on time %d" % (x)) While loop from 1 to infinity, therefore running forever.
Discussions

Python - Run for loop 3 times - Stack Overflow
So I have this assignment and I have a question about a part I don't know how to do, can you guys help me? def main(): # Please see the comments largest = 0 for index in range(3): # ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
for loops are confusing
What exactly is the issue you are having?? list1 = ['physics', 'chemistry', 1997, 2000]; for EachItem in list1: print(EachItem) More on reddit.com
๐ŸŒ r/learnpython
8
3
March 20, 2021
Having hard time understanding for loops in python

range(n) returns a sequence of numbers.

"for A in B" iterates over B. A being the name you use to refer to the current item being iterated upon.

More on reddit.com
๐ŸŒ r/learnprogramming
13
1
June 13, 2022
Can someone help me make sense of For Loops, please?
This for loop is used to execute a piece of code a specific amount (nr_letters) of times (i.e. the number of random chars you want). You donโ€™t use the char variable, but need it as itโ€™s necessary for a for loop (some people suggest to use _ as a variable name for situations where the variable is just a necessary placeholder). Note that this code isnโ€™t that clean. Using: for char in range(nr_letters): โ€ฆ would work as well. More on reddit.com
๐ŸŒ r/learnpython
15
4
September 6, 2021
๐ŸŒ
Serverspace
serverspace.io โ€บ support โ€บ help โ€บ for-loop-python
Python 3 For Loop Explained: Syntax and Practical Examples
June 1, 2025 - In conclusion, mastering the for loop in Python 3 is essential for efficient and effective programming. We've explored how to iterate over sequences using range(), navigate through lists and dictionaries, and implement nested loops for more complex data processing.
๐ŸŒ
Berkeley
pythonnumericalmethods.studentorg.berkeley.edu โ€บ notebooks โ€บ chapter05.01-For-Loops.html
For-Loops โ€” Python Numerical Methods
A for-loop assigns the looping variable to the first element of the sequence. It executes everything in the code block. Then it assigns the looping variable to the next element of the sequence and executes the code block again. It continues until there are no more elements in the sequence to assign.
Find elsewhere
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ python-for-loops
Python For Loops - GeeksforGeeks
In Python, enumerate() function is used with the for loop to iterate over an iterable while also keeping track of index of each item. ... This code uses nested for loops to iterate over two ranges of numbers (1 to 3 inclusive) and prints the value of i and j for each combination of these two loops.
Published ย  4 weeks ago
๐ŸŒ
Imperialcollegelondon
imperialcollegelondon.github.io โ€บ python-novice-mix โ€บ 07-for-loops โ€บ index.html
Programming in Python: For Loops
November 8, 2018 - A for loop tells Python to execute some statements once for each value in a list, a character string, or some other collection.
๐ŸŒ
Real Python
realpython.com โ€บ python-for-loop
Python for Loops: The Pythonic Way โ€“ Real Python
February 23, 2026 - Jane 25 Python Dev Canada >>> text = "abcde" >>> for character in text: ... print(character) ... a b c d e >>> for index in range(5): ... print(index) ... 0 1 2 3 4 ยท In these examples, you iterate over a tuple, string, and numeric range. Again, the loop traverses the sequence in the order of definition.
๐ŸŒ
IBM
ibm.com โ€บ reference โ€บ python โ€บ for-loop
What is a for loop in python? | IBM
November 21, 2025 - In Python, the for loop is a versatile tool. It directly iterates over items of any sequence (such as a list or string), in the order that they appear, without requiring the indexing used in some other languages.
๐ŸŒ
DataCamp
datacamp.com โ€บ tutorial โ€บ python-for-i-in-range
A Beginner's Guide to Python for Loops: Mastering for i in range | DataCamp
January 31, 2024 - Adds the ability to specify the step for incrementation. Example: range(1, 20, 2) yields 1, 3, 5, ..., 19. ... This loop iterates over each character in the string "Hello". The for loop assigns each character ('H', 'e', 'l', 'l', 'o') in turn ...
๐ŸŒ
Tutorialspoint
tutorialspoint.com โ€บ python โ€บ python_for_loops.htm
Python - For Loops
In the following example, the for loop traverses a tuple containing integers and returns the total of all numbers. numbers = (34,54,67,21,78,97,45,44,80,19) total = 0 for num in numbers: total += num print ("Total =", total) On running this code, it will produce the following output โˆ’ ... Python's list object is also an indexed sequence, and hence you can iterate over its items using a for loop.
๐ŸŒ
Liquid Web
liquidweb.com โ€บ home โ€บ guide to for loops in python and bash [explained with examples]
Guide to For Loops in Python and Bash [Explained with Examples]
June 2, 2025 - A Python for statement runs a sequence of code over and over again, in order, executing the same code block each time. This function allows us to re-run a command X number of times until we reach the desired result.
๐ŸŒ
Trey Hunner
treyhunner.com โ€บ 2016 โ€บ 04 โ€บ how-to-loop-with-indexes-in-python
How to loop with indexes in Python
Now letโ€™s talk about loops in Python. First weโ€™ll look at two slightly more familiar looping methods and then weโ€™ll look at the idiomatic way to loop in Python. If we wanted to mimic the behavior of our traditional C-style for loop in Python, we could use a while loop:
๐ŸŒ
Snakify
snakify.org โ€บ for loop with range
For loop with range - Learn Python 3 - Snakify
The loop always includes start_value and excludes end_value during iteration: ... By default, the function print() prints all its arguments separating them by a space and the puts a newline symbol after it. This behavior can be changed using keyword arguments sep (separator) and end. ... print(1, 2, 3) print(4, 5, 6) print(1, 2, 3, sep=', ', end='. ') print(4, 5, 6, sep=', ', end='. ') print() print(1, 2, 3, sep='', end=' -- ') print(4, 5, 6, sep=' * ', end='.')
๐ŸŒ
Mimo
mimo.org โ€บ glossary โ€บ python โ€บ for-loop
Python For Loop: Syntax and Examples [Python Tutorial]
In this example, the loop iterates over the list of numbers with a starting value of 1. Each iteration assigns the current value from the sequence of numbers to number. The function call in the code block prints each number in the list. range() is a built-in function that creates a list of numbers starting at 0 and stopping before a specified integer. This makes the range function ideal for creating Python for loops with index variables.
๐ŸŒ
Dataquest
dataquest.io โ€บ blog โ€บ python-for-loop-tutorial
Python for Loop: A Beginner's Tutorial โ€“ Dataquest
March 10, 2025 - Python for loops are powerful, and you can nest more complex instructions inside of them. To demonstrate this, let's repeat the above two steps for our 'price' column, this time within a single for Loop. total_price = 0 # create a variable to store the total range number for row in ev_data[1:]: # loop through each row in ev_data starting with row 2 (index 1) price = row[2] # each car's price is found in column 3 (index 2) price = int(price) # convert each price number from a string to an integer row[2] = price # assign price, which is now an integer, back to index 2 in each row total_price += price # add each car's price to total_price number_of_cars = len(ev_data[1:]) # calculate the length of our list, minus the header row print(total_price / number_of_cars) # print the average price
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ python_lists_loop.asp
Python - Loop Lists
Learn more about while loops in our Python While Loops Chapter. List Comprehension offers the shortest syntax for looping through lists:
๐ŸŒ
Learn Python
learnpython.org โ€บ en โ€บ Loops
Loops - Learn Python - Free Interactive Python Tutorial
For loops can iterate over a sequence of numbers using the "range" and "xrange" functions. The difference between range and xrange is that the range function returns a new list with numbers of that specified range, whereas xrange returns an ...
๐ŸŒ
Programiz
programiz.com โ€บ python-programming โ€บ for-loop
Python for Loop (With Examples)
# iterate from i = 0 to 3 for _ in range(0, 4): print('Hi') ... Here, the loop runs four times. In each iteration, we have displayed Hi. Since we are not using the items of the sequence (0, 1, 2, 3) in the loop body, it is better to use _ as the loop variable. ... Before we wrap up, letโ€™s put your knowledge of Python for loop to the test!