Skip to content

Commit f8a9ec8

Browse files
committed
updated
1 parent e22caee commit f8a9ec8

14 files changed

+1369
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"cells": [],
3+
"metadata": {},
4+
"nbformat": 4,
5+
"nbformat_minor": 5
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"cells": [],
3+
"metadata": {},
4+
"nbformat": 4,
5+
"nbformat_minor": 5
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 5,
6+
"id": "596b1978",
7+
"metadata": {},
8+
"outputs": [
9+
{
10+
"name": "stdout",
11+
"output_type": "stream",
12+
"text": [
13+
"enter your name: bhdkc\n",
14+
"enter your age: 14\n",
15+
"hello bhdkc! you are not eligible apply after 4 years\n"
16+
]
17+
}
18+
],
19+
"source": [
20+
"name=input(\"enter your name: \")\n",
21+
"age=input(\"enter your age: \")\n",
22+
"if age.isnumeric():\n",
23+
" age=int(age)\n",
24+
" n = 18-age\n",
25+
" if age >= 18:\n",
26+
" print(\"hello \"+ name +\"! you are eligible\")\n",
27+
" elif (age == 17) or (age == 16):\n",
28+
" print(f'hello {name} you are not eligible apply after {n} year')\n",
29+
" else:\n",
30+
" print(f'hello {name}! you are not eligible apply after {n} years')\n",
31+
"else:\n",
32+
" print('Enter your age again (numeric value)')"
33+
]
34+
},
35+
{
36+
"cell_type": "code",
37+
"execution_count": null,
38+
"id": "ffd88f52",
39+
"metadata": {},
40+
"outputs": [],
41+
"source": []
42+
},
43+
{
44+
"cell_type": "code",
45+
"execution_count": null,
46+
"id": "1d940409",
47+
"metadata": {},
48+
"outputs": [],
49+
"source": []
50+
}
51+
],
52+
"metadata": {
53+
"kernelspec": {
54+
"display_name": "Python 3 (ipykernel)",
55+
"language": "python",
56+
"name": "python3"
57+
},
58+
"language_info": {
59+
"codemirror_mode": {
60+
"name": "ipython",
61+
"version": 3
62+
},
63+
"file_extension": ".py",
64+
"mimetype": "text/x-python",
65+
"name": "python",
66+
"nbconvert_exporter": "python",
67+
"pygments_lexer": "ipython3",
68+
"version": "3.9.12"
69+
}
70+
},
71+
"nbformat": 4,
72+
"nbformat_minor": 5
73+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 4,
6+
"id": "b454a838",
7+
"metadata": {},
8+
"outputs": [
9+
{
10+
"name": "stdout",
11+
"output_type": "stream",
12+
"text": [
13+
"n is a biggest number\n"
14+
]
15+
}
16+
],
17+
"source": [
18+
"# Biggest number \n",
19+
"l=17\n",
20+
"m=14\n",
21+
"n=19\n",
22+
"if l > m:\n",
23+
" if l > n:\n",
24+
" print('l is a biggest number')\n",
25+
" else:\n",
26+
" print('n is a biggest number')\n",
27+
"else:\n",
28+
" print('m is a biggest number')"
29+
]
30+
},
31+
{
32+
"cell_type": "code",
33+
"execution_count": null,
34+
"id": "9899f04f",
35+
"metadata": {},
36+
"outputs": [],
37+
"source": []
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.9.12"
57+
}
58+
},
59+
"nbformat": 4,
60+
"nbformat_minor": 5
61+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"cells": [],
3+
"metadata": {},
4+
"nbformat": 4,
5+
"nbformat_minor": 5
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"cells": [],
3+
"metadata": {},
4+
"nbformat": 4,
5+
"nbformat_minor": 5
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"cells": [],
3+
"metadata": {},
4+
"nbformat": 4,
5+
"nbformat_minor": 5
6+
}

Untitled.ipynb

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"id": "d7c0b6b8",
7+
"metadata": {},
8+
"outputs": [],
9+
"source": [
10+
"# number! prime or not\n"
11+
]
12+
}
13+
],
14+
"metadata": {
15+
"kernelspec": {
16+
"display_name": "Python 3 (ipykernel)",
17+
"language": "python",
18+
"name": "python3"
19+
},
20+
"language_info": {
21+
"codemirror_mode": {
22+
"name": "ipython",
23+
"version": 3
24+
},
25+
"file_extension": ".py",
26+
"mimetype": "text/x-python",
27+
"name": "python",
28+
"nbconvert_exporter": "python",
29+
"pygments_lexer": "ipython3",
30+
"version": "3.9.12"
31+
}
32+
},
33+
"nbformat": 4,
34+
"nbformat_minor": 5
35+
}

0 commit comments

Comments
 (0)