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

# + [markdown] id="view-in-github" colab_type="text"
# <a href="https://colab.research.google.com/github/LondonInternational/Data-Science-Batch-A-NOVAIML2021/blob/main/Session_I_Nov2021_PM.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>

# + id="oqyGsgQXkorC"
#  Add Multi-line Comment - CTRL+/
# Online Compiler:-
# Google Colab
# Repl.it

# Local Compiler:- [IDE]
# Anaconda Navigator
# PyCharm

# + colab={"base_uri": "https://localhost:8080/"} id="pYLlaQaqau0v" outputId="41a8caf5-8b22-4532-e41c-b99f64905f50"
# This is my first program in Python (SLoC)
'''
This is a Multi-line Comment
Author: Sanket
Date: 02/11/2021
'''
print("hello world")

# + colab={"base_uri": "https://localhost:8080/"} id="4-PLV-e6ebRQ" outputId="b98de00e-3e1c-4208-ebd6-b8a93fc7d078"
# To RUN the Code Snippet - PLAY or CTRL+Enter or CMD+Enter
print("hello world")
print('hello world')
print('''yorker''')
print("""youtube""")

# + colab={"base_uri": "https://localhost:8080/", "height": 167} id="j0BJf9xvglio" outputId="5cea8fbd-1639-4b53-b149-f01c4a5db381"
# Python is a case-sensitive language
PRINT("helloworld")

# + colab={"base_uri": "https://localhost:8080/"} id="RCEi6BdMhMue" outputId="d9a05668-131b-4bcd-8126-4ec2db37a19b"
print("helloworld") # Built-in Function

# + colab={"base_uri": "https://localhost:8080/"} id="cAiApylzhWhi" outputId="dd213855-2de9-4c73-af9d-8c8dd4e83eab"
x = 45 # definition  of x -> Declaration + Initialization
print(x)

# + colab={"base_uri": "https://localhost:8080/", "height": 185} id="9rVq1g1DhdKO" outputId="a378f541-12f5-4fd2-c055-1f07ce339cc7"
NUM = 600
print(num)

# + colab={"base_uri": "https://localhost:8080/"} id="GXCVAtwJiItR" outputId="aa405de9-08b2-421c-fd80-f8cebaf60c31"
# List Of Operators in Python 
# Arithmetic Operators (+,-,/,*,**,//,%)

print(3+4)  # + Addition Operator - Binary Operator 
print(3-4)
print(3*4)
print(13/4) # float division operator
print(12/4) # float division operator
print(13//4) # integer division operator - 3.25 --> it trims the fractional part and returns integer part --> 3
print(23//3) # returns integer -> 7

print(12**2) # Power Operator -> base ** exponent -> 12 ** 2 -> 144

print(45 % 20) # Modulo Operator - Remainder Value -> 5
print( 2020 % 4 )  # Remainder -> 0

# + colab={"base_uri": "https://localhost:8080/"} id="W2CdTHi4l0HX" outputId="7884d33c-ce7e-46e0-d8cf-4689305fb6c1"
# Relational Operators (<,>,>=,<=,!=,==) return True/False -> Boolean(1/0)(T/F)

print(3<4)
print(3>4)
print(3<=4)
print(3>=4)

print(23 != 3) # not-equal-to [inequality operator] -> True
print(23 == 3) # equal-to [equality operator] -> False


# + colab={"base_uri": "https://localhost:8080/"} id="RURGrrx1nAf0" outputId="018724c8-cefe-4e67-f80a-3aedacd9948c"
# Logical Operators (and, or, not) return True/False -> Boolean(1/0)(T/F)

print( 56<4 and 56>78) # and operator returns True if both operands are True
print( True and True) 
print( False and False)
print( False and True)
print( True and False)

# + id="fK5RzZZslnUV"


# + colab={"base_uri": "https://localhost:8080/"} id="bK55Qyzoot8A" outputId="e18c66c4-cb6e-46fd-eb16-9548d8fb82c1"
print( 56<4 or 56>78) # or operator returns True if atleast one of the operands is True
print( 56<4 or 56>78) # False or False -> False
print( True or True) 
print( False or False)
print( False or True)
print( True or False)

# + colab={"base_uri": "https://localhost:8080/"} id="JebvaW3HpqXp" outputId="f0790957-3997-4a64-dd44-107958944020"
# not is a unary operator - inverts the value (True->False) (False->True)

print( not True) # not True -> False
print( not (56<67)) # not True -> False



age = 30



# + colab={"base_uri": "https://localhost:8080/", "height": 132} id="6nQrFWUGnz7X" outputId="8401f31b-f469-4c2e-f8af-fa4c246f3ed8"
True = 34

# + id="2w64f4utmSai"


StarcoderdataJupyterScriptsDedupFiltered