Skip to content

Commit b71cadb

Browse files
committed
update user input
1 parent 391c4fc commit b71cadb

File tree

2 files changed

+149
-0
lines changed

2 files changed

+149
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 1,
6+
"id": "5a965a7d",
7+
"metadata": {},
8+
"outputs": [
9+
{
10+
"name": "stdin",
11+
"output_type": "stream",
12+
"text": [
13+
"Enter Your Name - joy\n",
14+
"Enter Your age - 34\n",
15+
"Enter Your height - 5,6\n"
16+
]
17+
},
18+
{
19+
"name": "stdout",
20+
"output_type": "stream",
21+
"text": [
22+
"your name is joy\n",
23+
"your age is 34\n",
24+
"your height is 5,6\n"
25+
]
26+
}
27+
],
28+
"source": [
29+
"# user input\n",
30+
"name = input('Enter Your Name - ')\n",
31+
"age = input('Enter Your age - ')\n",
32+
"height = input('Enter Your height - ')\n",
33+
"# output\n",
34+
"print('your name is ',name)\n",
35+
"print('your age is ',age)\n",
36+
"print('your height is ',height)"
37+
]
38+
}
39+
],
40+
"metadata": {
41+
"kernelspec": {
42+
"display_name": "Python 3 (ipykernel)",
43+
"language": "python",
44+
"name": "python3"
45+
},
46+
"language_info": {
47+
"codemirror_mode": {
48+
"name": "ipython",
49+
"version": 3
50+
},
51+
"file_extension": ".py",
52+
"mimetype": "text/x-python",
53+
"name": "python",
54+
"nbconvert_exporter": "python",
55+
"pygments_lexer": "ipython3",
56+
"version": "3.13.5"
57+
}
58+
},
59+
"nbformat": 4,
60+
"nbformat_minor": 5
61+
}
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 1,
6+
"id": "5a965a7d",
7+
"metadata": {},
8+
"outputs": [
9+
{
10+
"name": "stdin",
11+
"output_type": "stream",
12+
"text": [
13+
"Enter Your Name - joy\n",
14+
"Enter Your age - 34\n",
15+
"Enter Your height - 5,6\n"
16+
]
17+
},
18+
{
19+
"name": "stdout",
20+
"output_type": "stream",
21+
"text": [
22+
"your name is joy\n",
23+
"your age is 34\n",
24+
"your height is 5,6\n"
25+
]
26+
}
27+
],
28+
"source": [
29+
"# user input\n",
30+
"name = input('Enter Your Name - ')\n",
31+
"age = input('Enter Your age - ')\n",
32+
"height = input('Enter Your height - ')\n",
33+
"# output\n",
34+
"print('your name is ',name)\n",
35+
"print('your age is ',age)\n",
36+
"print('your height is ',height)"
37+
]
38+
},
39+
{
40+
"cell_type": "code",
41+
"execution_count": 2,
42+
"id": "140882cd-9d64-4685-a8e6-23238615f2ca",
43+
"metadata": {},
44+
"outputs": [
45+
{
46+
"name": "stdout",
47+
"output_type": "stream",
48+
"text": [
49+
"your name is joy\n",
50+
"your age is 23\n",
51+
"your height is 3.4\n"
52+
]
53+
}
54+
],
55+
"source": [
56+
"# user input\n",
57+
"name = \"joy\"\n",
58+
"age = 23\n",
59+
"height = 3.4\n",
60+
"# output\n",
61+
"print('your name is ',name)\n",
62+
"print('your age is ',age)\n",
63+
"print('your height is ',height)"
64+
]
65+
}
66+
],
67+
"metadata": {
68+
"kernelspec": {
69+
"display_name": "Python 3 (ipykernel)",
70+
"language": "python",
71+
"name": "python3"
72+
},
73+
"language_info": {
74+
"codemirror_mode": {
75+
"name": "ipython",
76+
"version": 3
77+
},
78+
"file_extension": ".py",
79+
"mimetype": "text/x-python",
80+
"name": "python",
81+
"nbconvert_exporter": "python",
82+
"pygments_lexer": "ipython3",
83+
"version": "3.13.5"
84+
}
85+
},
86+
"nbformat": 4,
87+
"nbformat_minor": 5
88+
}

0 commit comments

Comments
 (0)