# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# ### Input

val = (input("Enter your value: ") )
print(val) 

# +
# Program to check input 
# type in Python 

num = input ("Enter number :") 
print(num) 
name1 = input("Enter name : ") 
print(name1) 

# Printing type of input value 
print ("type of number", type(num)) 
print ("type of name", type(name1)) 


# +
# creating an empty list 
lst = [] 
  
# number of elemetns as input 
n = int(input("Enter number of elements : ")) 
  
# iterating till the range 
for i in range(0, n): 
    ele =input()
  
    lst.append(ele) # adding the element 
      
print(lst) 

# +
# number of elements 
n = int(input("Enter number of elements : ")) 

# Below line read inputs from user using map() function 
a = list(map(int,input("\nEnter the numbers : ").strip().split()))[:n] 

print("\nList is - ", a) 


StarcoderdataJupyterScriptsDedupFiltered