Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ritik ramuka/python #10

Open
wants to merge 43 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
5741e34
Initial commit
ritikramuka Feb 8, 2022
1257237
TypesOfVariables-Code
ritikramuka Feb 8, 2022
f76e687
Operators in Python Code
ritikramuka Feb 8, 2022
46a4d0a
I/O in Python Code
ritikramuka Feb 8, 2022
a68443b
files at wrong directory removed
ritikramuka Feb 8, 2022
ed8700c
Input Output in Python Code
ritikramuka Feb 8, 2022
f74051e
Operators in Python Code
ritikramuka Feb 8, 2022
d608568
Input Output in Python Code
ritikramuka Feb 8, 2022
f49fd9e
Variables in Python Code
ritikramuka Feb 8, 2022
fa0c26d
Removed unwanted File
ritikramuka Feb 8, 2022
9c4f8c2
Added Test File
ritikramuka Feb 8, 2022
2169361
outline updated
ritikramuka Feb 8, 2022
84e3da0
Fixed Some Markdown Voilations
ritikramuka Feb 8, 2022
86e7060
Update Python/README.md
ritikramuka Feb 8, 2022
a447a2c
fixed some typos on line 15 & 16
ritikramuka Feb 8, 2022
bc7defd
Merge branch 'Python/RitikRamuka' of https://github.com/Pepcoders/Dat…
ritikramuka Feb 8, 2022
ee5ed03
Conditional Operators types Updated
ritikramuka Feb 8, 2022
8b5eef7
Created using Colaboratory
ritikramuka Feb 8, 2022
31ffd05
some changes in outline
ritikramuka Feb 9, 2022
e0eb373
Merge branch 'Python/RitikRamuka' of https://github.com/Pepcoders/Dat…
ritikramuka Feb 9, 2022
5d3a3bb
some changes in outline
ritikramuka Feb 9, 2022
ebb3e4e
Loops in python code
ritikramuka Feb 9, 2022
d5b463d
Loops_English.ipynb file directory changed
ritikramuka Feb 9, 2022
171ab64
Strings in python code
ritikramuka Feb 9, 2022
93f41dc
removed some unwanted file
ritikramuka Feb 9, 2022
0a411bf
String in python code
ritikramuka Feb 9, 2022
02154e3
List in Python Code
ritikramuka Feb 9, 2022
7f8051c
tuple in python code
ritikramuka Feb 9, 2022
31e371a
List in python code
ritikramuka Feb 9, 2022
1de092d
tuple in python code
ritikramuka Feb 9, 2022
d442210
Sets in python code
ritikramuka Feb 9, 2022
d206d53
constructor method of sets added
ritikramuka Feb 9, 2022
f934d69
dictionary in python code
ritikramuka Feb 9, 2022
aa2ab12
Created using Colaboratory
ritikramuka Feb 9, 2022
0f165e6
updates
ritikramuka Feb 9, 2022
cd2e320
some updates in course overview
ritikramuka Feb 9, 2022
192c848
Try-Except in python code
ritikramuka Feb 9, 2022
268fb93
functions in python code
ritikramuka Feb 11, 2022
bbb38c5
lambda functions in python
ritikramuka Feb 11, 2022
2106fb8
Global Variables in python
ritikramuka Feb 11, 2022
91de8d3
Update README.md
ritikramuka Feb 18, 2022
894bc14
Update README.md
ritikramuka Feb 22, 2022
29eb6d8
Update README.md
ritikramuka Feb 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
122 changes: 122 additions & 0 deletions Python/ConditionalOperators_English.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "ConditionalOperators_English.ipynb",
"provenance": [],
"authorship_tag": "ABX9TyPFs3JKzT0pGBftguKEQE4j",
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/github/Pepcoders/Data-Science-Content-English/blob/Python%2FRitikRamuka/Python/ConditionalOperators_English.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"id": "8B6Yl6gvbYyb"
},
"outputs": [],
"source": [
"# Conditions Operator"
]
},
{
"cell_type": "code",
"source": [
"# if-else operator\n",
"\n",
"age = int(input(\"Enter your age: \"))\n",
"\n",
"if age >= 18 :\n",
" print(\"Adult\")\n",
"\n",
"if age < 18 :\n",
" print(\"Child\")\n",
"\n",
"if(age < 18) :\n",
" print(\"Child\")\n",
"else :\n",
" print(\"Adult\")"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "-q4HrTmab6PH",
"outputId": "9db3e93d-19ef-44c6-d262-136fb8e12ced"
},
"execution_count": 10,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Enter your age: 12\n",
"Child\n",
"Child\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"age = int(input(\"Enter your age: \"))\n",
"\n",
"if age >= 60 :\n",
" print(\"Senior\")\n",
"elif age < 60 and age >= 18 :\n",
" print(\"Adult\")\n",
"else :\n",
" print(\"Child\")"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "zANmJwIjexOD",
"outputId": "251632ff-629f-4795-d814-33855f8b86d5"
},
"execution_count": 12,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Enter your age: 45\n",
"Adult\n"
]
}
]
},
{
"cell_type": "code",
"source": [
""
],
"metadata": {
"id": "_P2ho04phKIv"
},
"execution_count": null,
"outputs": []
}
]
}
Loading