We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2e2fc5 commit da38209Copy full SHA for da38209
1 file changed
saving_input_into_list.py
@@ -0,0 +1,13 @@
1
+ran= int(input("Enter the range of elements you want to store / insert "))
2
+l1=[]
3
+for i in range(ran):
4
+ l1.append(input("Enter here "))
5
+
6
+print(l1)
7
8
9
+"""
10
+program first asks the user how many values they want to enter. Then, using a loop, it lets the user enter that many values one by one.
11
+Each entered value is saved into a list called l1. Once all the values are entered, the program prints the complete list, showing
12
+everything the user typed. It's a beginner-friendly way to learn how to collect multiple inputs and store them for later use.
13
0 commit comments