SlideShare a Scribd company logo
1 of 10
MOOC PRESENTATION
on
Python Basics For Data
Science
PRESENTER BY:
Nandita Dutta
Introduction
Python is a high-level programming
language designed to be easy to read and
simple to implement.
It is open source which means it is free to
use, even for commercial applications.
Scripts written in Python (.PY files) can
be parsed and run immediately.
Data science is the field of study that
combines domain expertise,
programming skills, and knowledge of
mathematics and statistics to extract
meaningful insights from data. Data
science practitioners apply machine
learning algorithms to numbers, text,
images, video, audio, and more to
produce AI systems to perform tasks
that ordinarily require human
intelligence.
DEFINITION OF DATA SCIENCE
3
Text Type: str
Numeric Types: int, float, complex
Sequence Types: list, tuple, range
Mapping Type: dict
Set Types: set, frozenset
Boolean Type: Bool
EXAMPLE OF VARIABLES:
A= 3
A = 4
print a
print A
EXAMPLE OF EXPRESSION:
a = 2
b = 3
c = a + b
print c
d = a * b
print d
4
A data type, in programming, is a classification
that specifies which type of value a variable has
and what type of mathematical, relational or
logical operations can be applied to it without
causing an error.
Variables need not be declared first in python.
They can be used directly. Variables in python are
case sensitive as most of the other programming
languages.
Strings are arrays of bytes representing Unicode
characters. However, Python does not have a
character data type, a single character is simply a
string with a length of 1. Square brackets can be
used to access elements of the string.
EXAMPLE:
A = “NANDITA”
Print(“hello”, A)
5
Lists are used to store multiple items in a single
variable.
EXAMPLE:
thislist = ["apple", "banana", "cherry"]
print(thislist)
LIST & TUPLE RANGE DICTONARIES
Tuples are used to store multiple items in a single
variable.
EXAMPLE:
thistuple = ("apple", "banana", "cherry")
print(thistuple)
The range() function returns a sequence of
numbers, starting from 0 by default, and
increments by 1 (by default), and stops before
a specified number.
SYNTAX:
range(start, stop, step)
EXAMPLE:
x = range(3, 6)
for n in x:
print(n)
Dictionaries are used to store data values
in key:value pairs.
A dictionary is a collection which is
ordered*, changeable and does not allow
duplicates
EXAMPLE:
thisdict
= {"brand": "Ford","model": "Mustang
",
"year": 1964}
print(thisdict)
Conditional Statement in Python
perform different computations or
actions depending on whether a
specific Boolean constraint evaluates
to true or false. Conditional
statements are handled by IF
statements in Python.


3 / 1 / 2 0 X X S A M P L E F O O T E R T E X T
for i in range(1, 11):
if i == 7:
break
print(i)
print("Loop terminated")
A loop statement allows us to execute a
statement or group of statements multiple
times. The first statement in a function is
executed first, followed by the second, and
so on.
f= open("demofile.txt", "r")
print(f.read())
f = open("demofile.txt", "r")
7
To write to an existing file, add a
parameter to the open() function:
• "a" - Append - will append to the end
of the file.
• "w" - Write - will overwrite any
existing content
Example:
f= open("demofile3.txt", "w")
f.write("Woops! I have deleted
the content!")
f.close()
HTML is the standard markup language for Web
pages.
With HTML you can create your own Website.
html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Web scraping is an automated method used to extract large amounts
of data from websites. The data on the websites are unstructured. Web
scraping helps collect these unstructured data and store it in a
structured form.
Web scraping is used to collect large information from websites. Some
web applications of web scaping are:
 Price Comparison
 Email address gathering
 Social Media Scraping
 Research and Development
8
SUMMARY
EDX is a non- profit open source online course
(MOOC) provider which hosts online university-
level courses in wide range. It takes free online
courses from best universities in the world like
Harvard, MIT, UC Berkeley, Microsoft Tsinghua
University and so on. The Verified track awards
a certificate after you successfully pass the
course. It’s a great way to showcase the skills
and knowledge you’ve gained, and will help you
too in your further career.
Learn more on :
https://discover.edx.org/about-us
1 0

More Related Content

What's hot

What's hot (20)

Indexing Data Structure
Indexing Data StructureIndexing Data Structure
Indexing Data Structure
 
Introductio to c++
Introductio to c++Introductio to c++
Introductio to c++
 
What is Dictionary In Python? Python Dictionary Tutorial | Edureka
What is Dictionary In Python? Python Dictionary Tutorial | EdurekaWhat is Dictionary In Python? Python Dictionary Tutorial | Edureka
What is Dictionary In Python? Python Dictionary Tutorial | Edureka
 
Presentation on data preparation with pandas
Presentation on data preparation with pandasPresentation on data preparation with pandas
Presentation on data preparation with pandas
 
Dynamic multi level indexing Using B-Trees And B+ Trees
Dynamic multi level indexing Using B-Trees And B+ TreesDynamic multi level indexing Using B-Trees And B+ Trees
Dynamic multi level indexing Using B-Trees And B+ Trees
 
Array
ArrayArray
Array
 
Mutable data types in python
Mutable data types in pythonMutable data types in python
Mutable data types in python
 
Datastrucure
DatastrucureDatastrucure
Datastrucure
 
ORE en Fedora Op Klompen
ORE en Fedora Op KlompenORE en Fedora Op Klompen
ORE en Fedora Op Klompen
 
07.bootstrapping
07.bootstrapping07.bootstrapping
07.bootstrapping
 
Fp growth
Fp growthFp growth
Fp growth
 
4.4 external hashing
4.4 external hashing4.4 external hashing
4.4 external hashing
 
Intellectual technologies
Intellectual technologiesIntellectual technologies
Intellectual technologies
 
ODF Template Engine
ODF Template EngineODF Template Engine
ODF Template Engine
 
C programming disk file reading and writing
C programming disk file reading and writingC programming disk file reading and writing
C programming disk file reading and writing
 
Unit 5
Unit 5Unit 5
Unit 5
 
Files and data storage
Files and data storageFiles and data storage
Files and data storage
 
9-Figures in LaTex
9-Figures in LaTex9-Figures in LaTex
9-Figures in LaTex
 
Fp growth algorithm
Fp growth algorithmFp growth algorithm
Fp growth algorithm
 
Experiment no 4
Experiment no 4Experiment no 4
Experiment no 4
 

Similar to Presentation on basics of python

python programming for beginners and advanced
python programming for beginners and advancedpython programming for beginners and advanced
python programming for beginners and advancedgranjith6
 
Programming in Python
Programming in Python Programming in Python
Programming in Python Tiji Thomas
 
Introduction to Python , Overview
Introduction to Python , OverviewIntroduction to Python , Overview
Introduction to Python , OverviewNB Veeresh
 
Python basics_ part1
Python basics_ part1Python basics_ part1
Python basics_ part1Elaf A.Saeed
 
Programming Under Linux In Python
Programming Under Linux In PythonProgramming Under Linux In Python
Programming Under Linux In PythonMarwan Osman
 
Python (Data Analysis) cleaning and visualize
Python (Data Analysis) cleaning and visualizePython (Data Analysis) cleaning and visualize
Python (Data Analysis) cleaning and visualizeIruolagbePius
 
INTRODUCTION TO PYTHON.pptx
INTRODUCTION TO PYTHON.pptxINTRODUCTION TO PYTHON.pptx
INTRODUCTION TO PYTHON.pptxNimrahafzal1
 
1. python programming
1. python programming1. python programming
1. python programmingsreeLekha51
 
Basic Introduction to Python Programming
Basic Introduction to Python ProgrammingBasic Introduction to Python Programming
Basic Introduction to Python ProgrammingSubashiniRathinavel
 
PART - 1 Python Introduction- Variables- Data types - Numeric- String- Boole...
PART - 1  Python Introduction- Variables- Data types - Numeric- String- Boole...PART - 1  Python Introduction- Variables- Data types - Numeric- String- Boole...
PART - 1 Python Introduction- Variables- Data types - Numeric- String- Boole...manikamr074
 
modul-python-part1.pptx
modul-python-part1.pptxmodul-python-part1.pptx
modul-python-part1.pptxYusuf Ayuba
 
Learn Python The Hard Way Presentation
Learn Python The Hard Way PresentationLearn Python The Hard Way Presentation
Learn Python The Hard Way PresentationAmira ElSharkawy
 

Similar to Presentation on basics of python (20)

Python 3.x quick syntax guide
Python 3.x quick syntax guidePython 3.x quick syntax guide
Python 3.x quick syntax guide
 
Data Science Using Python.pptx
Data Science Using Python.pptxData Science Using Python.pptx
Data Science Using Python.pptx
 
Python cheat-sheet
Python cheat-sheetPython cheat-sheet
Python cheat-sheet
 
python programming for beginners and advanced
python programming for beginners and advancedpython programming for beginners and advanced
python programming for beginners and advanced
 
Programming in Python
Programming in Python Programming in Python
Programming in Python
 
Introduction to Python , Overview
Introduction to Python , OverviewIntroduction to Python , Overview
Introduction to Python , Overview
 
CPPDS Slide.pdf
CPPDS Slide.pdfCPPDS Slide.pdf
CPPDS Slide.pdf
 
4)12th_L-1_PYTHON-PANDAS-I.pptx
4)12th_L-1_PYTHON-PANDAS-I.pptx4)12th_L-1_PYTHON-PANDAS-I.pptx
4)12th_L-1_PYTHON-PANDAS-I.pptx
 
Python basics_ part1
Python basics_ part1Python basics_ part1
Python basics_ part1
 
Programming Under Linux In Python
Programming Under Linux In PythonProgramming Under Linux In Python
Programming Under Linux In Python
 
Python (Data Analysis) cleaning and visualize
Python (Data Analysis) cleaning and visualizePython (Data Analysis) cleaning and visualize
Python (Data Analysis) cleaning and visualize
 
INTRODUCTION TO PYTHON.pptx
INTRODUCTION TO PYTHON.pptxINTRODUCTION TO PYTHON.pptx
INTRODUCTION TO PYTHON.pptx
 
Python Training
Python TrainingPython Training
Python Training
 
python1.ppt
python1.pptpython1.ppt
python1.ppt
 
1. python programming
1. python programming1. python programming
1. python programming
 
Basic Introduction to Python Programming
Basic Introduction to Python ProgrammingBasic Introduction to Python Programming
Basic Introduction to Python Programming
 
PART - 1 Python Introduction- Variables- Data types - Numeric- String- Boole...
PART - 1  Python Introduction- Variables- Data types - Numeric- String- Boole...PART - 1  Python Introduction- Variables- Data types - Numeric- String- Boole...
PART - 1 Python Introduction- Variables- Data types - Numeric- String- Boole...
 
modul-python-part1.pptx
modul-python-part1.pptxmodul-python-part1.pptx
modul-python-part1.pptx
 
Python Programming
Python ProgrammingPython Programming
Python Programming
 
Learn Python The Hard Way Presentation
Learn Python The Hard Way PresentationLearn Python The Hard Way Presentation
Learn Python The Hard Way Presentation
 

Recently uploaded

Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 

Recently uploaded (20)

Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 

Presentation on basics of python

  • 1. MOOC PRESENTATION on Python Basics For Data Science PRESENTER BY: Nandita Dutta
  • 2. Introduction Python is a high-level programming language designed to be easy to read and simple to implement. It is open source which means it is free to use, even for commercial applications. Scripts written in Python (.PY files) can be parsed and run immediately.
  • 3. Data science is the field of study that combines domain expertise, programming skills, and knowledge of mathematics and statistics to extract meaningful insights from data. Data science practitioners apply machine learning algorithms to numbers, text, images, video, audio, and more to produce AI systems to perform tasks that ordinarily require human intelligence. DEFINITION OF DATA SCIENCE 3
  • 4. Text Type: str Numeric Types: int, float, complex Sequence Types: list, tuple, range Mapping Type: dict Set Types: set, frozenset Boolean Type: Bool EXAMPLE OF VARIABLES: A= 3 A = 4 print a print A EXAMPLE OF EXPRESSION: a = 2 b = 3 c = a + b print c d = a * b print d 4 A data type, in programming, is a classification that specifies which type of value a variable has and what type of mathematical, relational or logical operations can be applied to it without causing an error. Variables need not be declared first in python. They can be used directly. Variables in python are case sensitive as most of the other programming languages. Strings are arrays of bytes representing Unicode characters. However, Python does not have a character data type, a single character is simply a string with a length of 1. Square brackets can be used to access elements of the string. EXAMPLE: A = “NANDITA” Print(“hello”, A)
  • 5. 5 Lists are used to store multiple items in a single variable. EXAMPLE: thislist = ["apple", "banana", "cherry"] print(thislist) LIST & TUPLE RANGE DICTONARIES Tuples are used to store multiple items in a single variable. EXAMPLE: thistuple = ("apple", "banana", "cherry") print(thistuple) The range() function returns a sequence of numbers, starting from 0 by default, and increments by 1 (by default), and stops before a specified number. SYNTAX: range(start, stop, step) EXAMPLE: x = range(3, 6) for n in x: print(n) Dictionaries are used to store data values in key:value pairs. A dictionary is a collection which is ordered*, changeable and does not allow duplicates EXAMPLE: thisdict = {"brand": "Ford","model": "Mustang ", "year": 1964} print(thisdict)
  • 6. Conditional Statement in Python perform different computations or actions depending on whether a specific Boolean constraint evaluates to true or false. Conditional statements are handled by IF statements in Python.   3 / 1 / 2 0 X X S A M P L E F O O T E R T E X T for i in range(1, 11): if i == 7: break print(i) print("Loop terminated") A loop statement allows us to execute a statement or group of statements multiple times. The first statement in a function is executed first, followed by the second, and so on.
  • 7. f= open("demofile.txt", "r") print(f.read()) f = open("demofile.txt", "r") 7 To write to an existing file, add a parameter to the open() function: • "a" - Append - will append to the end of the file. • "w" - Write - will overwrite any existing content Example: f= open("demofile3.txt", "w") f.write("Woops! I have deleted the content!") f.close()
  • 8. HTML is the standard markup language for Web pages. With HTML you can create your own Website. html> <head> <title>Page Title</title> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> </body> </html> Web scraping is an automated method used to extract large amounts of data from websites. The data on the websites are unstructured. Web scraping helps collect these unstructured data and store it in a structured form. Web scraping is used to collect large information from websites. Some web applications of web scaping are:  Price Comparison  Email address gathering  Social Media Scraping  Research and Development 8
  • 9. SUMMARY EDX is a non- profit open source online course (MOOC) provider which hosts online university- level courses in wide range. It takes free online courses from best universities in the world like Harvard, MIT, UC Berkeley, Microsoft Tsinghua University and so on. The Verified track awards a certificate after you successfully pass the course. It’s a great way to showcase the skills and knowledge you’ve gained, and will help you too in your further career. Learn more on : https://discover.edx.org/about-us
  • 10. 1 0