SlideShare a Scribd company logo
1 of 22
Download to read offline
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
-The Textual Data
-Enclosed inside
Quotation Marks “”
‘Menard’
“Hello World”
“Strings”
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan
-Has 3 Types:
-int, float, complex
12
3.14
92+0j
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan
-2 Boolean Values:
-True and False
True
False
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan
-Used to store
Data Values
myName = “Menard”
print(myName)
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan
-To access each
Iterable.
numbers = [
1, 3.14, -25]
pi = numbers[1]
print(pi)
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan
-Takes data from
the user.
name = input(
“Enter name: ”)
print(‘Hi’, name)
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan
-Inside Brackets []
-List values are
Comma Separated
myList = [
“Hi”, 3.14, True
]
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan
-Inside Braces {}
-Keyword-Value
pairs
info = {
“Name”: “Menard”,
“Age”: 20
}
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan
-Inside
Parenthesis ()
-Comma Separated
coordinates = (
112, 85, 92
)
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan
-Gives Logic to our
Code.
-Control Flow
rainy = True
if rainy:
print(“Need Coat”)
else:
print(“No need”)
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan
-Make loops using
Conditions/Booleans
num = 10
while num != 0:
print(num)
num -= 1
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan
-Make loops using
Iteration
for x in range(9):
print(x)
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan
-Used for
Catching errors
try:
print(4 / ”hi”)
except TypeError:
print(“Invalid”)
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan
-Describe codes
-To communicate
with other devs.
# Prints the Sum
print(9 + 3.14)
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan
-Read, write,
append to files.
-Files interaction.
file = open(
“file.txt”, “r”)
print(file.read())
file.close()
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan
-Organize codes
-Get input (or not),
and Spits output.
def greet(name):
return f’Hi {name}!’
print(greet(“Nard”))
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan
-Higher level of
Organizing codes.
-Also the Objects
class Calc:
def add(self, x, y):
return x + y
Calc().add(9, 5)
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan
-Inheriting codes
from one class to
Another class.
class Comp(Calc):
pass
Comp().add(9, 5)
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan
-Valid Python Files.
-Can be imported
to another module
import os
print(os.getcwd())
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan
-Collection of
Built-in modules
import re
from math import *
import shutil as sh
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan
-Modules built by
the Community.
import requests
from bs4 import *
import numpy as np
Menard Maranan
https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/
Menard Maranan

More Related Content

More from Menard Maranan

More from Menard Maranan (15)

Python while loops (menard maranan)
Python while loops (menard maranan)Python while loops (menard maranan)
Python while loops (menard maranan)
 
Python if else statements (menard maranan)
Python if else statements (menard maranan)Python if else statements (menard maranan)
Python if else statements (menard maranan)
 
Python tuples (menard maranan)
Python tuples (menard maranan)Python tuples (menard maranan)
Python tuples (menard maranan)
 
Python sets (menard maranan)
Python sets (menard maranan)Python sets (menard maranan)
Python sets (menard maranan)
 
Python dictionaries (menard maranan)
Python dictionaries (menard maranan)Python dictionaries (menard maranan)
Python dictionaries (menard maranan)
 
Python nested lists (menard maranan)
Python nested lists (menard maranan)Python nested lists (menard maranan)
Python nested lists (menard maranan)
 
Python lists (menard maranan)
Python lists (menard maranan)Python lists (menard maranan)
Python lists (menard maranan)
 
Python data structures (menard maranan)
Python data structures (menard maranan)Python data structures (menard maranan)
Python data structures (menard maranan)
 
Python string formatting (menard maranan)
Python string formatting (menard maranan)Python string formatting (menard maranan)
Python string formatting (menard maranan)
 
Python comments (menard maranan)
Python comments (menard maranan)Python comments (menard maranan)
Python comments (menard maranan)
 
Python indexing (menard maranan)
Python indexing (menard maranan)Python indexing (menard maranan)
Python indexing (menard maranan)
 
Slides python booleans (menard maranan)
Slides   python booleans (menard maranan)Slides   python booleans (menard maranan)
Slides python booleans (menard maranan)
 
Slides python numbers (menard maranan)
Slides   python numbers (menard maranan)Slides   python numbers (menard maranan)
Slides python numbers (menard maranan)
 
Python strings Tutorial (menard maranan)
Python strings Tutorial (menard maranan)Python strings Tutorial (menard maranan)
Python strings Tutorial (menard maranan)
 
Python infographics
Python infographicsPython infographics
Python infographics
 

Recently uploaded

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software Engineering
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptx
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 

Python Learning Journey

  • 2. -The Textual Data -Enclosed inside Quotation Marks “” ‘Menard’ “Hello World” “Strings” Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan
  • 3. -Has 3 Types: -int, float, complex 12 3.14 92+0j Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan
  • 4. -2 Boolean Values: -True and False True False Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan
  • 5. -Used to store Data Values myName = “Menard” print(myName) Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan
  • 6. -To access each Iterable. numbers = [ 1, 3.14, -25] pi = numbers[1] print(pi) Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan
  • 7. -Takes data from the user. name = input( “Enter name: ”) print(‘Hi’, name) Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan
  • 8. -Inside Brackets [] -List values are Comma Separated myList = [ “Hi”, 3.14, True ] Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan
  • 9. -Inside Braces {} -Keyword-Value pairs info = { “Name”: “Menard”, “Age”: 20 } Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan
  • 10. -Inside Parenthesis () -Comma Separated coordinates = ( 112, 85, 92 ) Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan
  • 11. -Gives Logic to our Code. -Control Flow rainy = True if rainy: print(“Need Coat”) else: print(“No need”) Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan
  • 12. -Make loops using Conditions/Booleans num = 10 while num != 0: print(num) num -= 1 Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan
  • 13. -Make loops using Iteration for x in range(9): print(x) Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan
  • 14. -Used for Catching errors try: print(4 / ”hi”) except TypeError: print(“Invalid”) Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan
  • 15. -Describe codes -To communicate with other devs. # Prints the Sum print(9 + 3.14) Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan
  • 16. -Read, write, append to files. -Files interaction. file = open( “file.txt”, “r”) print(file.read()) file.close() Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan
  • 17. -Organize codes -Get input (or not), and Spits output. def greet(name): return f’Hi {name}!’ print(greet(“Nard”)) Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan
  • 18. -Higher level of Organizing codes. -Also the Objects class Calc: def add(self, x, y): return x + y Calc().add(9, 5) Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan
  • 19. -Inheriting codes from one class to Another class. class Comp(Calc): pass Comp().add(9, 5) Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan
  • 20. -Valid Python Files. -Can be imported to another module import os print(os.getcwd()) Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan
  • 21. -Collection of Built-in modules import re from math import * import shutil as sh Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan
  • 22. -Modules built by the Community. import requests from bs4 import * import numpy as np Menard Maranan https://www.youtube.com/channel/UC28oX1455dR2OF72o1DU80w/ Menard Maranan