SlideShare a Scribd company logo
1 of 10
Download to read offline
Introduction to PythonIntroduction to Python
ProgrammingProgramming
Why Python?Why Python?
 Python is what is referred to as an object-oriented
programming language (OOP)
 OOP is a programming style that allows programmers to
reuse pre made code.
◦ Don’t need to recreate the wheel
 Thus creates a much more efficient programming language
so programmers don’t have to spend tedious amounts of
time creating code that had been published.
 Simple
 Less Syntax
 We will be discussing OOP as we move through the course.
What is Python?What is Python?
Python is a general purpose programming
language. That means you can use Python
to write code for any programming tasks.
◦ Google search engine
◦ Mission critical projects in NASA,
◦ Processing financial transactions at New York
Stock Exchange.
◦ Data Analytics
Interpreted?Interpreted?
Python is interpreted, which means that
python code is translated and executed by
an interpreter one statement at a time.
This means you can run commands/code
on the command prompt…
Through a command
prompt with a text file…
Using an IDE
What Does It Look Like?What Does It Look Like?
Python Statements
Parts of a Python ProgramParts of a Python Program
Def: Source Code is the program text
entered into an interpreter by the
programmer.
◦ The saved file is referred to as, the source file.
◦ The main file in a python program, called main
◦ Can program on the command prompt
The extension to a source file is “.py”
◦ Xcel - .xls
◦ Power Point - .ppt
Two main parts to a source file
◦ Libraries
◦ Main code
Good programming proclamationsGood programming proclamations
Using comments to denote programs or
sections of code
◦ A comment beginning with # is called a single-line comment
because it terminates at the end of the current line.
◦ You also may use a multi-line comment—possibly containing
many lines—begins with ’’’ and ends with ’’’.
You use blank lines, space characters and tab characters
(i.e., “tabs”) to make programs easier to read.
◦ Together, these characters are known as white space.
◦ White-space characters are USUALLY ignored by the interpreter.
◦ Python has its own rules with white space
CheckpointCheckpoint
1. What is OOP?
2. What is the name of the file and code
that the text for a program is entered into
the interpreter?
3. What is a library? Why aren’t all the
functions preloaded?
4. What are the two styles of comments
you can utilize and their symbols?
Printing a Line of TextPrinting a Line of Text
print(“ “)
Anything placed inside the quotes will be printed on the screen
upon execution of the print command.
Printing a Line of TextPrinting a Line of Text
print(“ “)
Anything placed inside the quotes will be printed on the screen
upon execution of the print command.

More Related Content

What's hot

Overview of python 2019
Overview of python 2019Overview of python 2019
Overview of python 2019Samir Mohanty
 
Python PPT
Python PPTPython PPT
Python PPTEdureka!
 
Introduction To Python | Edureka
Introduction To Python | EdurekaIntroduction To Python | Edureka
Introduction To Python | EdurekaEdureka!
 
Introduction to-python
Introduction to-pythonIntroduction to-python
Introduction to-pythonAakashdata
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to pythonAgung Wahyudi
 
Python - An Introduction
Python - An IntroductionPython - An Introduction
Python - An IntroductionSwarit Wadhe
 
Presentation on python
Presentation on pythonPresentation on python
Presentation on pythonwilliam john
 
Python | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python TutorialPython | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python TutorialQA TrainingHub
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to PythonNowell Strite
 
Python final presentation kirti ppt1
Python final presentation kirti ppt1Python final presentation kirti ppt1
Python final presentation kirti ppt1Kirti Verma
 
Python Programming ppt
Python Programming pptPython Programming ppt
Python Programming pptismailmrribi
 
Python Seminar PPT
Python Seminar PPTPython Seminar PPT
Python Seminar PPTShivam Gupta
 

What's hot (20)

Overview of python 2019
Overview of python 2019Overview of python 2019
Overview of python 2019
 
Python PPT
Python PPTPython PPT
Python PPT
 
Python - the basics
Python - the basicsPython - the basics
Python - the basics
 
Introduction To Python | Edureka
Introduction To Python | EdurekaIntroduction To Python | Edureka
Introduction To Python | Edureka
 
Python ppt
Python pptPython ppt
Python ppt
 
Beginning Python Programming
Beginning Python ProgrammingBeginning Python Programming
Beginning Python Programming
 
Introduction to-python
Introduction to-pythonIntroduction to-python
Introduction to-python
 
Python programming
Python  programmingPython  programming
Python programming
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Python - An Introduction
Python - An IntroductionPython - An Introduction
Python - An Introduction
 
Presentation on python
Presentation on pythonPresentation on python
Presentation on python
 
Python | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python TutorialPython | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python Tutorial
 
Python
PythonPython
Python
 
Python basic
Python basicPython basic
Python basic
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 
Python
PythonPython
Python
 
Python final presentation kirti ppt1
Python final presentation kirti ppt1Python final presentation kirti ppt1
Python final presentation kirti ppt1
 
Python Programming ppt
Python Programming pptPython Programming ppt
Python Programming ppt
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Python Seminar PPT
Python Seminar PPTPython Seminar PPT
Python Seminar PPT
 

Viewers also liked

Viewers also liked (7)

Variables and Expressions
Variables and ExpressionsVariables and Expressions
Variables and Expressions
 
Input
InputInput
Input
 
Logical Operators
Logical OperatorsLogical Operators
Logical Operators
 
Formatting Output
Formatting  OutputFormatting  Output
Formatting Output
 
For Loops and Nesting in Python
For Loops and Nesting in PythonFor Loops and Nesting in Python
For Loops and Nesting in Python
 
Computer Logic
Computer LogicComputer Logic
Computer Logic
 
Conditional Loops Python
Conditional Loops PythonConditional Loops Python
Conditional Loops Python
 

Similar to Intro to Python

Python Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxPython Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxManohar k
 
Introduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdfIntroduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdfVaibhavKumarSinghkal
 
Intro to Python with GPIO
Intro to Python with GPIOIntro to Python with GPIO
Intro to Python with GPIOprimeteacher32
 
Python-00 | Introduction and installing
Python-00 | Introduction and installingPython-00 | Introduction and installing
Python-00 | Introduction and installingMohd Sajjad
 
INTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHONINTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHONRuchiNagar3
 
PYTHON FEATURES.pptx
PYTHON FEATURES.pptxPYTHON FEATURES.pptx
PYTHON FEATURES.pptxMaheShiva
 
Introduction to Python Programming language.pptx
Introduction to Python Programming language.pptxIntroduction to Python Programming language.pptx
Introduction to Python Programming language.pptxBharathYusha1
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to pythonRanjith kumar
 
Ways To Become A Good Python Developer
Ways To Become A Good Python DeveloperWays To Become A Good Python Developer
Ways To Become A Good Python DeveloperCodeMonk
 
Python Programming
Python ProgrammingPython Programming
Python ProgrammingRenieMathews
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming LanguageLaxman Puri
 
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptxa9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptxcigogag569
 

Similar to Intro to Python (20)

Python Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxPython Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docx
 
Introduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdfIntroduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdf
 
Intro to Python with GPIO
Intro to Python with GPIOIntro to Python with GPIO
Intro to Python with GPIO
 
Intro to Python
Intro to PythonIntro to Python
Intro to Python
 
Python-00 | Introduction and installing
Python-00 | Introduction and installingPython-00 | Introduction and installing
Python-00 | Introduction and installing
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
 
INTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHONINTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHON
 
Python basics
Python basicsPython basics
Python basics
 
PYTHON FEATURES.pptx
PYTHON FEATURES.pptxPYTHON FEATURES.pptx
PYTHON FEATURES.pptx
 
Introduction to Python Programming language.pptx
Introduction to Python Programming language.pptxIntroduction to Python Programming language.pptx
Introduction to Python Programming language.pptx
 
Python Programming Part 1.pdf
Python Programming Part 1.pdfPython Programming Part 1.pdf
Python Programming Part 1.pdf
 
Python Programming Part 1.pdf
Python Programming Part 1.pdfPython Programming Part 1.pdf
Python Programming Part 1.pdf
 
Python Programming Part 1.pdf
Python Programming Part 1.pdfPython Programming Part 1.pdf
Python Programming Part 1.pdf
 
Python
PythonPython
Python
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Ways To Become A Good Python Developer
Ways To Become A Good Python DeveloperWays To Become A Good Python Developer
Ways To Become A Good Python Developer
 
Python Programming
Python ProgrammingPython Programming
Python Programming
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming Language
 
MODULE 1.pptx
MODULE 1.pptxMODULE 1.pptx
MODULE 1.pptx
 
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptxa9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
 

More from primeteacher32

More from primeteacher32 (20)

Software Development Life Cycle
Software Development Life CycleSoftware Development Life Cycle
Software Development Life Cycle
 
Variable Scope
Variable ScopeVariable Scope
Variable Scope
 
Returning Data
Returning DataReturning Data
Returning Data
 
Intro to Functions
Intro to FunctionsIntro to Functions
Intro to Functions
 
Introduction to GUIs with guizero
Introduction to GUIs with guizeroIntroduction to GUIs with guizero
Introduction to GUIs with guizero
 
Function Parameters
Function ParametersFunction Parameters
Function Parameters
 
Nested Loops
Nested LoopsNested Loops
Nested Loops
 
Conditional Loops
Conditional LoopsConditional Loops
Conditional Loops
 
Introduction to Repetition Structures
Introduction to Repetition StructuresIntroduction to Repetition Structures
Introduction to Repetition Structures
 
Input Validation
Input ValidationInput Validation
Input Validation
 
Windows File Systems
Windows File SystemsWindows File Systems
Windows File Systems
 
Nesting Conditionals
Nesting ConditionalsNesting Conditionals
Nesting Conditionals
 
Conditionals
ConditionalsConditionals
Conditionals
 
Variables and Statements
Variables and StatementsVariables and Statements
Variables and Statements
 
Variables and User Input
Variables and User InputVariables and User Input
Variables and User Input
 
Raspberry Pi
Raspberry PiRaspberry Pi
Raspberry Pi
 
Hardware vs. Software Presentations
Hardware vs. Software PresentationsHardware vs. Software Presentations
Hardware vs. Software Presentations
 
Block chain security
Block chain securityBlock chain security
Block chain security
 
Hashes
HashesHashes
Hashes
 
System Administration
System AdministrationSystem Administration
System Administration
 

Recently uploaded

Network to Success - Using Social Media in Job Search
Network to Success - Using Social Media in Job SearchNetwork to Success - Using Social Media in Job Search
Network to Success - Using Social Media in Job SearchBruce Bennett
 
OSHA 2022 and FMA 2022 Ammendments New Briefings
OSHA 2022 and FMA 2022 Ammendments New BriefingsOSHA 2022 and FMA 2022 Ammendments New Briefings
OSHA 2022 and FMA 2022 Ammendments New BriefingsJeevarubanChandraseg
 
Learnbay Reviews – Career Tracks, Courses, Learning Mode, Fee, Reviews, Effec...
Learnbay Reviews – Career Tracks, Courses, Learning Mode, Fee, Reviews, Effec...Learnbay Reviews – Career Tracks, Courses, Learning Mode, Fee, Reviews, Effec...
Learnbay Reviews – Career Tracks, Courses, Learning Mode, Fee, Reviews, Effec...ayushmandhami26
 
APSC Motor Vechile Inspector 18 Posts.pdf
APSC Motor Vechile Inspector 18 Posts.pdfAPSC Motor Vechile Inspector 18 Posts.pdf
APSC Motor Vechile Inspector 18 Posts.pdfsoumita869
 
Resume 101 - Your guide to creating the best resume!
Resume 101 - Your guide to creating the best resume!Resume 101 - Your guide to creating the best resume!
Resume 101 - Your guide to creating the best resume!PratimNarayanMoitra1
 
What is the career path of a VFX artist?
What is the career path of a VFX artist?What is the career path of a VFX artist?
What is the career path of a VFX artist?santoshjadhav126
 
RESUME WRITING HACSE.pptx for job opportunities
RESUME WRITING HACSE.pptx for job opportunitiesRESUME WRITING HACSE.pptx for job opportunities
RESUME WRITING HACSE.pptx for job opportunitiesDr.Amit Hemant Mishal
 
John Steven McRae Resume Generated April 2024
John Steven McRae Resume Generated April 2024John Steven McRae Resume Generated April 2024
John Steven McRae Resume Generated April 2024jsmcrae2016
 
How to Write a Resume in a Competitive Job Market
How to Write a Resume in a Competitive Job MarketHow to Write a Resume in a Competitive Job Market
How to Write a Resume in a Competitive Job Marketideatoipo
 
Roles-of-ethics by BSBA-FM 2nd year.pptx
Roles-of-ethics by BSBA-FM 2nd year.pptxRoles-of-ethics by BSBA-FM 2nd year.pptx
Roles-of-ethics by BSBA-FM 2nd year.pptxJoyselmaeVillaver
 
Resumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying OnlineResumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying OnlineBruce Bennett
 
How to make career in advance 3d animation
How to make career in advance 3d animationHow to make career in advance 3d animation
How to make career in advance 3d animationsantoshjadhav126
 
Kelly Wang 王薇盈_數位轉型、生成式AI、設計思考、客戶體驗優化、敏捷管理、SEO
Kelly Wang 王薇盈_數位轉型、生成式AI、設計思考、客戶體驗優化、敏捷管理、SEOKelly Wang 王薇盈_數位轉型、生成式AI、設計思考、客戶體驗優化、敏捷管理、SEO
Kelly Wang 王薇盈_數位轉型、生成式AI、設計思考、客戶體驗優化、敏捷管理、SEOKelly Wang
 
About Kelly Wang: Generative AI, SEO, PR
About Kelly Wang: Generative AI, SEO, PRAbout Kelly Wang: Generative AI, SEO, PR
About Kelly Wang: Generative AI, SEO, PRKelly Wang
 

Recently uploaded (14)

Network to Success - Using Social Media in Job Search
Network to Success - Using Social Media in Job SearchNetwork to Success - Using Social Media in Job Search
Network to Success - Using Social Media in Job Search
 
OSHA 2022 and FMA 2022 Ammendments New Briefings
OSHA 2022 and FMA 2022 Ammendments New BriefingsOSHA 2022 and FMA 2022 Ammendments New Briefings
OSHA 2022 and FMA 2022 Ammendments New Briefings
 
Learnbay Reviews – Career Tracks, Courses, Learning Mode, Fee, Reviews, Effec...
Learnbay Reviews – Career Tracks, Courses, Learning Mode, Fee, Reviews, Effec...Learnbay Reviews – Career Tracks, Courses, Learning Mode, Fee, Reviews, Effec...
Learnbay Reviews – Career Tracks, Courses, Learning Mode, Fee, Reviews, Effec...
 
APSC Motor Vechile Inspector 18 Posts.pdf
APSC Motor Vechile Inspector 18 Posts.pdfAPSC Motor Vechile Inspector 18 Posts.pdf
APSC Motor Vechile Inspector 18 Posts.pdf
 
Resume 101 - Your guide to creating the best resume!
Resume 101 - Your guide to creating the best resume!Resume 101 - Your guide to creating the best resume!
Resume 101 - Your guide to creating the best resume!
 
What is the career path of a VFX artist?
What is the career path of a VFX artist?What is the career path of a VFX artist?
What is the career path of a VFX artist?
 
RESUME WRITING HACSE.pptx for job opportunities
RESUME WRITING HACSE.pptx for job opportunitiesRESUME WRITING HACSE.pptx for job opportunities
RESUME WRITING HACSE.pptx for job opportunities
 
John Steven McRae Resume Generated April 2024
John Steven McRae Resume Generated April 2024John Steven McRae Resume Generated April 2024
John Steven McRae Resume Generated April 2024
 
How to Write a Resume in a Competitive Job Market
How to Write a Resume in a Competitive Job MarketHow to Write a Resume in a Competitive Job Market
How to Write a Resume in a Competitive Job Market
 
Roles-of-ethics by BSBA-FM 2nd year.pptx
Roles-of-ethics by BSBA-FM 2nd year.pptxRoles-of-ethics by BSBA-FM 2nd year.pptx
Roles-of-ethics by BSBA-FM 2nd year.pptx
 
Resumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying OnlineResumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying Online
 
How to make career in advance 3d animation
How to make career in advance 3d animationHow to make career in advance 3d animation
How to make career in advance 3d animation
 
Kelly Wang 王薇盈_數位轉型、生成式AI、設計思考、客戶體驗優化、敏捷管理、SEO
Kelly Wang 王薇盈_數位轉型、生成式AI、設計思考、客戶體驗優化、敏捷管理、SEOKelly Wang 王薇盈_數位轉型、生成式AI、設計思考、客戶體驗優化、敏捷管理、SEO
Kelly Wang 王薇盈_數位轉型、生成式AI、設計思考、客戶體驗優化、敏捷管理、SEO
 
About Kelly Wang: Generative AI, SEO, PR
About Kelly Wang: Generative AI, SEO, PRAbout Kelly Wang: Generative AI, SEO, PR
About Kelly Wang: Generative AI, SEO, PR
 

Intro to Python

  • 1. Introduction to PythonIntroduction to Python ProgrammingProgramming
  • 2. Why Python?Why Python?  Python is what is referred to as an object-oriented programming language (OOP)  OOP is a programming style that allows programmers to reuse pre made code. ◦ Don’t need to recreate the wheel  Thus creates a much more efficient programming language so programmers don’t have to spend tedious amounts of time creating code that had been published.  Simple  Less Syntax  We will be discussing OOP as we move through the course.
  • 3. What is Python?What is Python? Python is a general purpose programming language. That means you can use Python to write code for any programming tasks. ◦ Google search engine ◦ Mission critical projects in NASA, ◦ Processing financial transactions at New York Stock Exchange. ◦ Data Analytics
  • 4. Interpreted?Interpreted? Python is interpreted, which means that python code is translated and executed by an interpreter one statement at a time. This means you can run commands/code on the command prompt… Through a command prompt with a text file… Using an IDE
  • 5. What Does It Look Like?What Does It Look Like? Python Statements
  • 6. Parts of a Python ProgramParts of a Python Program Def: Source Code is the program text entered into an interpreter by the programmer. ◦ The saved file is referred to as, the source file. ◦ The main file in a python program, called main ◦ Can program on the command prompt The extension to a source file is “.py” ◦ Xcel - .xls ◦ Power Point - .ppt Two main parts to a source file ◦ Libraries ◦ Main code
  • 7. Good programming proclamationsGood programming proclamations Using comments to denote programs or sections of code ◦ A comment beginning with # is called a single-line comment because it terminates at the end of the current line. ◦ You also may use a multi-line comment—possibly containing many lines—begins with ’’’ and ends with ’’’. You use blank lines, space characters and tab characters (i.e., “tabs”) to make programs easier to read. ◦ Together, these characters are known as white space. ◦ White-space characters are USUALLY ignored by the interpreter. ◦ Python has its own rules with white space
  • 8. CheckpointCheckpoint 1. What is OOP? 2. What is the name of the file and code that the text for a program is entered into the interpreter? 3. What is a library? Why aren’t all the functions preloaded? 4. What are the two styles of comments you can utilize and their symbols?
  • 9. Printing a Line of TextPrinting a Line of Text print(“ “) Anything placed inside the quotes will be printed on the screen upon execution of the print command.
  • 10. Printing a Line of TextPrinting a Line of Text print(“ “) Anything placed inside the quotes will be printed on the screen upon execution of the print command.

Editor's Notes

  1. Common elements in programming languages: Key Words Programmer-Defined Identifiers Operators Punctuation Syntax