how to make inputs in a loop in python

for i in range(1,6): 
    globals()['string%s' % i] = input("Enter something: ")
    
#You can change how many times the loop iterates

print(string3)#This will return whatever was inputed
			  #in the third iteration of the loop

Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
input from user using for loop in python loop input in python input in loop python take inputs from user in python using for loop python input in loop input for loop python for input loops in python how to take input in a loop in python how to write an input loop in python python input loops loop input python python quick way write input with loop input using for loop puthon python loop input input python in loop how to loop input in python how to make an input loop in python how to take input in for loop in python create input functions in loop python how to loop an input in python python input loop how to store an input in python in loop input in python for loop input loop python take input using for loop in python input in for loop python while input interpret input for loop python input in python with loop use while loop with an input python python prints whatever the user enters, and stops when the user types “done”, using an infinite loop and a break statement. python Write a program that prints whatever the user enters, and stops when the user types “done”, using an infinite loop and a break statement. Write a program that prints whatever the user enters, and stops when the user types “done”, using an infinite loop and a break statement. while input python how to make a loop in python that increase by 10 let the user input python loop an input looping input using for loop python asking input through for loop user input in while loop python python looping an input how to make a while input while true python needs enter python multiplication how to stop a program using yes or no keep looping while user enter input while loop input python python while input how to make a choice loop in python 3 input program python with loops program the uses a while loop to output all even integers between 1 and whatever number the user provides. python loop and input py how to make inputs in a loop in python
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source