Skip to content

Commit 51463ef

Browse files
committed
Check NUM
1 parent 44ce878 commit 51463ef

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

Input.ipynb

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,56 @@
3232
"print(val) "
3333
]
3434
},
35+
{
36+
"cell_type": "code",
37+
"execution_count": 4,
38+
"metadata": {},
39+
"outputs": [
40+
{
41+
"name": "stdin",
42+
"output_type": "stream",
43+
"text": [
44+
"Enter number : 1\n"
45+
]
46+
},
47+
{
48+
"name": "stdout",
49+
"output_type": "stream",
50+
"text": [
51+
"1\n"
52+
]
53+
},
54+
{
55+
"name": "stdin",
56+
"output_type": "stream",
57+
"text": [
58+
"Enter name : Soumyadip\n"
59+
]
60+
},
61+
{
62+
"name": "stdout",
63+
"output_type": "stream",
64+
"text": [
65+
"Soumyadip\n",
66+
"type of number <class 'str'>\n",
67+
"type of name <class 'str'>\n"
68+
]
69+
}
70+
],
71+
"source": [
72+
"# Program to check input \n",
73+
"# type in Python \n",
74+
"\n",
75+
"num = input (\"Enter number :\") \n",
76+
"print(num) \n",
77+
"name1 = input(\"Enter name : \") \n",
78+
"print(name1) \n",
79+
"\n",
80+
"# Printing type of input value \n",
81+
"print (\"type of number\", type(num)) \n",
82+
"print (\"type of name\", type(name1)) \n"
83+
]
84+
},
3585
{
3686
"cell_type": "code",
3787
"execution_count": null,

0 commit comments

Comments
 (0)