[ARRAY] Getting input from user using for loop

 




# Getting input  from  user
from array import*

kartik = array('i',[])
sen=int(input("please Enter how manay element that you want\n "))
for i in range(sen):
kartik.append(int(input("pls enter something\n ")))

for i in range(len(kartik)):
print(kartik(i))

Comments

Popular posts from this blog

Healthy Programmmer PROJECT

Difference Between Procedural and Non-procedural Language

Dictionary Practice Question