forked from sunidhi2001/Hacktoberfest2022-accepted
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinput.py
29 lines (27 loc) · 747 Bytes
/
input.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# creating an empty list
# lst = []
# # number of elements as input
# n = int(input("Enter number of elements : "))
# # iterating till the range
# for i in range(0, n):
# ele = int(input())
# lst.append(ele) # adding the element
# print(lst)
# creating an empty list
# lst = []
# # number of elements as input
# n = int(input("Enter number of elements : "))
# # iterating till the range
# for i in range(0, n):
# ele = int(input())
# lst.append(ele) # adding the element
# print(lst)
def double():
inputnum =[]
n = int(input("enter no of elements : "))
for i in range(0,n):
numbers= int(input())
inputnum.append(numbers*2)
# return inputnum
print(inputnum)
double()