# ---
# 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/mchllmndz/CPEN-21A-ECE-2-1/blob/main/Demo01.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>

# + [markdown] id="x5hb00f3LJAs"
# # Intro to Python

# + id="iNBNGa1uLM2n"
#Phyton Indention
if 5>2: 
  print ("five is greater than two")

# + [markdown] id="jxr5vym0MgfC"
# Five is greater than two

# + [markdown] id="McfJL3s2Mk0j"
# #Python Variable

# + id="N9f6grHPMoJC"
x=1
a,b=0,1
a,b,c="zero","one","two"
print (x)
print (a)
print (b)
print (c)

# + [markdown] id="SrQBUTRkM44D"
# 1
#
# zero
#
# one
#
# two

# + id="OglSn9VyM8NC"
d="Sally" #This is = string
D="Ana"
print (d)
e="John"
print (e)
print (D)

# + [markdown] id="ZiHGfismNR5L"
# Sally
#
# John
#
# Ana
#

# + id="9aomNDXmNWNT"
print (type(d)) #This is Type function
print (type(x))

# + [markdown] id="UFZwNbsVNlns"
# <class 'str'>
#
# <class 'int'>

# + [markdown] id="nBv8tHVcNrRU"
# #Casting

# + [markdown] id="wbBQLdY9NuHL"
# In [13]:

# + id="T4TarnelN6Sr"
f = float (4)
print (f)
g = int (5)
print (g)

# + [markdown] id="0rueu4EHOCy0"
# 4.0
#
# 5

# + [markdown] id="L3BSvytIOE1L"
# #Multiple Variables with One Value

# + [markdown] id="5EQ2IkAZOKJb"
# In [21]:

# + id="-LzD_oUAOM77"
x=y=z="four"
print (x)
print (y)
print (z)

# + [markdown] id="vSMUuZNlOT2F"
# four
#
# four
#
# four

# + id="NIiKVKNaOXN0"
In [22]:

# + id="3N3sQhJNOZo8"
x="enjoying"
print ("Python Programming is " " ") + x)

# + [markdown] id="kovMlyFROlu8"
# Pyhton Programming is enjoying

# + [markdown] id="6WhDRv_vOp-E"
# #Operation in Python

# + [markdown] id="tMizUbdQOuDV"
# In [46]

# + id="tFCtQ3wpOx68"
x=5
y=7
print (x+y)
print (x*y)
print (x)

# + [markdown] id="R-8dYohqO7Ms"
# 12
#
# 35
#
# 5

StarcoderdataJupyterScriptsDedupFiltered