SlideShare a Scribd company logo
Python assignment help
www.myassignmenthelp.net
What is Python
• Multi-purpose i.e, Web, Graphical user interface
(GUI), Scripting and many others.
• Strongly typed as well as dynamically typed.
• Focus on readability as well as productivity.
• Object oriented.
• Interpreted.
www.myassignmenthelp.net
Characteristics
• Easy to Learn
• High-level Language
• Interactive shell
• Strong introspection
• Cross platform
• Object Oriented
• Everything is an object
• Free and Open Source
www.myassignmenthelp.net
CONT..
• Useful built-in types (lists, dictionaries)
• Clean syntax, powerful extensions
• Interpreted
• Interactive
• Commonly used for producing HTML content on
websites. Great for text files
• Functional
• Extensive Libraries
www.myassignmenthelp.net
Languages
www.myassignmenthelp.net
• Few important types:
– FORTRAN
• Technology
– COBOL
• Business Information
– LISP
• Logic as well as AI
– BASIC
• Easy Language
The Python Interpreter
• Python can be an
interpreted terminology
• The actual interpreter
has an interactive
environment in order to
perform using the
language
• Results
>>>> 4 + 5
9
>>>> 4 < 15
True
>>>> “print me”
“print me”
>>>> print “print me”
print me
>>> >
www.myassignmenthelp.net
Print “Hello World”
• Open a terminal window and type ‘python’
• If on Windows open a Python IDE such as IDLE
• At the prompt type “Hello World !!”
>>>> ‘Hello World !!'
‘Hello World !!'
www.myassignmenthelp.net
The print Statement
>>>> print “Welcome”
Welcome
>>>> print “Welcome”, “Ram”
Welcome Ram
• Elements divided
through commas , print
with a space between
them
• The comma at the
end from the statement
(print “Welcome”,)
won't printing the new
line character
www.myassignmenthelp.net
The Documentation
>>> > “welcome'
‘welcome'
>>> #‘comment'
>>>
‘#’ : this symbol is used for starts a
comment
www.myassignmenthelp.net
Variables
• Do not need to declare
• Should determine (initialize)
• Using uninitialized variable improves
exception
• Certainly not typed
in case ,friendly: greeting = “Hello World"
else: greeting = 12**2
print greeting
• Anything is often a ‘variable’:
• Even characteristics, classes, modules
www.myassignmenthelp.net
Everything is an object
• Everything means,
which includes
functions as well as
classes
• Data type is usually a
property of the object
instead of on the
variable
>>>> x = 9
>>> x
9
>>>> x = “Welcome”
>>>> x
“Welcome”
>>>>
www.myassignmenthelp.net
Interactive “Shell”
• This is good for learning the language
• Good for experimenting for using your library
• Good for testing for using your own modules
• 2 variants: IDLE (GUI),
python (command line)
• Kind statements or even expressions at prompt:
www.myassignmenthelp.net
>>>> print "Hello, World"
Hello, World
>>>> x = 12**2
>>>> x/2
72
>>>> # (this is a comment)
Numbers
• The typical suspects:
• 13, 3.15, 0xFF, 0377, (-1+2)*3/4**5, abs(x), 0<x<=5
• C-style shifting & masking:
• 1<<17, x&0xff, x|1, ~x, x^y
• Integer division truncates:
• 1/2 -> 0 # 1./2. -> 0.5, float(1)/2 -> 0.5
• fixed in the future
• Long complicated:
• 2L**100 -> 1267650600228229401497607505376L
– Within Python 2.2 as well as past, 2**100 will the
same
www.myassignmenthelp.net
Strings
• ‘Hello’+ ‘World’ ‘HelloWorld’ # Concatenation
• ‘Hello’*2 ‘HelloHello’ # Repetition
• ‘Hello’[0] ‘h’ # Indexing
• ‘Hello’[-1] ‘o’ # (From end)
• ‘Hello’[1:4] ‘ell’ # Slicing
• len(‘Hello’) 5 # Size
• ‘Hello’< ‘jello’ 1 # Comparison
• ‘e’ in ‘hello’ 1 # Search
• ‘escapes: n etc, 033 etc, if etc’
• 'single quotes' """triple quotes""" r ‘raw strings’
www.myassignmenthelp.net
Lists
• Variable arrays, definitely, not Lisp-like
linked lists
• x = [99, [‘on’, ‘the’, ‘wall’]]
• Exact same providers for strings
• x+y, x*3, x[0], x[-1], x[1:], len(x)
• Item and slice assignment
• x[0] = 98
-> [98, [‘on’, ‘the’, ‘wall’]]
• del x[-1] # -> [98]
www.myassignmenthelp.net
Tuples
• Tuples tend to be
immutable versions
associated with lists
• One strange may be the
structure to create a tuple
along with one element:
‘,’ is required to
differentiate from the
numerical expression (2)
>>>> a = (1,2,3)
>>> >a[1:]
(2, 3)
>>>> b = (2,)
>>> >b
(2,)
>>> >
www.myassignmenthelp.net
Dictionaries
• Some key-value sets
• Dictionaries tend to be mutable
>>> x = {1 : ‘Welcome', ‘Two' : 32, ‘Hi' : [4,5,6]}
>>> x
{1: ‘Welcome', ‘Two': 32, ‘Hi': [1, 2, 3]}
>>> x[‘Hi']
[4,5,6]
www.myassignmenthelp.net
Standard Library
• Core:
– operating system, sys, string, StringIO, struct, pickle etc
• Regular expressions:
– re module, Perl-5 style patterns as well as matching
rules
• Web:
– socket, rfc822, httplib, htmllib etc
• Miscellaneous:
– pdb
– Tkinter, audio etc
www.myassignmenthelp.net
Thank You
www.myassignmenthelp.net

More Related Content

What's hot

Real time collaborative text editing, by Miroslav Hettes, Smarkup
Real time collaborative text editing, by Miroslav Hettes, SmarkupReal time collaborative text editing, by Miroslav Hettes, Smarkup
Real time collaborative text editing, by Miroslav Hettes, Smarkup
Smarkup
 
Javascript for the c# developer
Javascript for the c# developerJavascript for the c# developer
Javascript for the c# developer
Salvatore Fazio
 
Ce e nou in Rails 4
Ce e nou in Rails 4Ce e nou in Rails 4
Ce e nou in Rails 4
Florin Oltean
 
Using JS to teach JS at Khan Academy
Using JS to teach JS at Khan AcademyUsing JS to teach JS at Khan Academy
Using JS to teach JS at Khan Academy
jeresig
 
Rapid Application Development using Ruby on Rails
Rapid Application Development using Ruby on RailsRapid Application Development using Ruby on Rails
Rapid Application Development using Ruby on Rails
Simobo
 
An introduction to jQuery
An introduction to jQueryAn introduction to jQuery
An introduction to jQuery
James Wragg
 
FFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTMLFFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTML
Toni Kolev
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Return on Intelligence
 
Introduction to Programming (well, kind of.)
Introduction to Programming (well, kind of.)Introduction to Programming (well, kind of.)
Introduction to Programming (well, kind of.)
Julie Meloni
 

What's hot (10)

Real time collaborative text editing, by Miroslav Hettes, Smarkup
Real time collaborative text editing, by Miroslav Hettes, SmarkupReal time collaborative text editing, by Miroslav Hettes, Smarkup
Real time collaborative text editing, by Miroslav Hettes, Smarkup
 
Jquery fundamentals
Jquery fundamentalsJquery fundamentals
Jquery fundamentals
 
Javascript for the c# developer
Javascript for the c# developerJavascript for the c# developer
Javascript for the c# developer
 
Ce e nou in Rails 4
Ce e nou in Rails 4Ce e nou in Rails 4
Ce e nou in Rails 4
 
Using JS to teach JS at Khan Academy
Using JS to teach JS at Khan AcademyUsing JS to teach JS at Khan Academy
Using JS to teach JS at Khan Academy
 
Rapid Application Development using Ruby on Rails
Rapid Application Development using Ruby on RailsRapid Application Development using Ruby on Rails
Rapid Application Development using Ruby on Rails
 
An introduction to jQuery
An introduction to jQueryAn introduction to jQuery
An introduction to jQuery
 
FFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTMLFFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTML
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Introduction to Programming (well, kind of.)
Introduction to Programming (well, kind of.)Introduction to Programming (well, kind of.)
Introduction to Programming (well, kind of.)
 

Viewers also liked

13 Programación Web con .NET y C#
13 Programación Web con .NET y C#13 Programación Web con .NET y C#
13 Programación Web con .NET y C#
guidotic
 
20160012076
2016001207620160012076
20160012076WJ Chang
 
Task 8-Editing the contents page
Task 8-Editing the contents pageTask 8-Editing the contents page
Task 8-Editing the contents page
jackettinger1998
 
Morris appp key
Morris appp keyMorris appp key
Morris appp key
Aaron Morris
 
20160150270
2016015027020160150270
20160150270WJ Chang
 
Automation and flow control
Automation and flow controlAutomation and flow control
Automation and flow control
lunchNtouch
 
Unemployt inflation output 0810
Unemployt inflation output 0810Unemployt inflation output 0810
Unemployt inflation output 0810mayankvns
 
MOCT
MOCTMOCT
Webinar: Moving to Office 365? What You Need to Know!
Webinar: Moving to Office 365? What You Need to Know!Webinar: Moving to Office 365? What You Need to Know!
Webinar: Moving to Office 365? What You Need to Know!
Flexera
 

Viewers also liked (10)

13 Programación Web con .NET y C#
13 Programación Web con .NET y C#13 Programación Web con .NET y C#
13 Programación Web con .NET y C#
 
20160012076
2016001207620160012076
20160012076
 
Task 8-Editing the contents page
Task 8-Editing the contents pageTask 8-Editing the contents page
Task 8-Editing the contents page
 
Unsd2014 ind999
Unsd2014 ind999Unsd2014 ind999
Unsd2014 ind999
 
Morris appp key
Morris appp keyMorris appp key
Morris appp key
 
20160150270
2016015027020160150270
20160150270
 
Automation and flow control
Automation and flow controlAutomation and flow control
Automation and flow control
 
Unemployt inflation output 0810
Unemployt inflation output 0810Unemployt inflation output 0810
Unemployt inflation output 0810
 
MOCT
MOCTMOCT
MOCT
 
Webinar: Moving to Office 365? What You Need to Know!
Webinar: Moving to Office 365? What You Need to Know!Webinar: Moving to Office 365? What You Need to Know!
Webinar: Moving to Office 365? What You Need to Know!
 

Similar to Python assignment help

Python ppt
Python pptPython ppt
Python ppt
Mohita Pandey
 
Python Programming and GIS
Python Programming and GISPython Programming and GIS
Python Programming and GIS
John Reiser
 
Getting started in Python presentation by Laban K
Getting started in Python presentation by Laban KGetting started in Python presentation by Laban K
Getting started in Python presentation by Laban K
GDSCKYAMBOGO
 
JavaScript: Creative Coding for Browsers
JavaScript: Creative Coding for BrowsersJavaScript: Creative Coding for Browsers
JavaScript: Creative Coding for Browsersnoweverywhere
 
Javascript
JavascriptJavascript
Javascript
Sunil Thakur
 
Code Like Pythonista
Code Like PythonistaCode Like Pythonista
Code Like Pythonista
Chiyoung Song
 
python_class.pptx
python_class.pptxpython_class.pptx
python_class.pptx
chandankumar943868
 
Programming in python Unit-1 Part-1
Programming in python Unit-1 Part-1Programming in python Unit-1 Part-1
Programming in python Unit-1 Part-1
Vikram Nandini
 
Python.pptx
Python.pptxPython.pptx
Python.pptx
AshaS74
 
Boost Maintainability
Boost MaintainabilityBoost Maintainability
Boost Maintainability
Mosky Liu
 
MIND sweeping introduction to PHP
MIND sweeping introduction to PHPMIND sweeping introduction to PHP
MIND sweeping introduction to PHPBUDNET
 
Javascript done right - Open Web Camp III
Javascript done right - Open Web Camp IIIJavascript done right - Open Web Camp III
Javascript done right - Open Web Camp IIIDirk Ginader
 
Intro to Python
Intro to PythonIntro to Python
Learn Ruby 2011 - Session 3
Learn Ruby 2011 - Session 3Learn Ruby 2011 - Session 3
Learn Ruby 2011 - Session 3
James Thompson
 
Children of Ruby
Children of RubyChildren of Ruby
Children of Ruby
Simon St.Laurent
 
Python programming
Python programmingPython programming
Python programming
Ganesh Bhosale
 
Intro to Perl
Intro to PerlIntro to Perl
Intro to Perl
primeteacher32
 
Professional Help for PowerShell Modules
Professional Help for PowerShell ModulesProfessional Help for PowerShell Modules
Professional Help for PowerShell Modules
June Blender
 

Similar to Python assignment help (20)

Python ppt
Python pptPython ppt
Python ppt
 
Python Programming and GIS
Python Programming and GISPython Programming and GIS
Python Programming and GIS
 
Ruby1_full
Ruby1_fullRuby1_full
Ruby1_full
 
Ruby1_full
Ruby1_fullRuby1_full
Ruby1_full
 
Getting started in Python presentation by Laban K
Getting started in Python presentation by Laban KGetting started in Python presentation by Laban K
Getting started in Python presentation by Laban K
 
JavaScript: Creative Coding for Browsers
JavaScript: Creative Coding for BrowsersJavaScript: Creative Coding for Browsers
JavaScript: Creative Coding for Browsers
 
Javascript
JavascriptJavascript
Javascript
 
Code Like Pythonista
Code Like PythonistaCode Like Pythonista
Code Like Pythonista
 
python_class.pptx
python_class.pptxpython_class.pptx
python_class.pptx
 
Programming in python Unit-1 Part-1
Programming in python Unit-1 Part-1Programming in python Unit-1 Part-1
Programming in python Unit-1 Part-1
 
Python.pptx
Python.pptxPython.pptx
Python.pptx
 
Boost Maintainability
Boost MaintainabilityBoost Maintainability
Boost Maintainability
 
MIND sweeping introduction to PHP
MIND sweeping introduction to PHPMIND sweeping introduction to PHP
MIND sweeping introduction to PHP
 
Javascript done right - Open Web Camp III
Javascript done right - Open Web Camp IIIJavascript done right - Open Web Camp III
Javascript done right - Open Web Camp III
 
Intro to Python
Intro to PythonIntro to Python
Intro to Python
 
Learn Ruby 2011 - Session 3
Learn Ruby 2011 - Session 3Learn Ruby 2011 - Session 3
Learn Ruby 2011 - Session 3
 
Children of Ruby
Children of RubyChildren of Ruby
Children of Ruby
 
Python programming
Python programmingPython programming
Python programming
 
Intro to Perl
Intro to PerlIntro to Perl
Intro to Perl
 
Professional Help for PowerShell Modules
Professional Help for PowerShell ModulesProfessional Help for PowerShell Modules
Professional Help for PowerShell Modules
 

More from www.myassignmenthelp.net

Programming assignment help by myassignmenthelp
Programming assignment help by myassignmenthelpProgramming assignment help by myassignmenthelp
Programming assignment help by myassignmenthelp
www.myassignmenthelp.net
 
Artificial intelligence : what it is
Artificial intelligence : what it isArtificial intelligence : what it is
Artificial intelligence : what it is
www.myassignmenthelp.net
 
natural language processing help at myassignmenthelp.net
natural language processing  help at myassignmenthelp.netnatural language processing  help at myassignmenthelp.net
natural language processing help at myassignmenthelp.net
www.myassignmenthelp.net
 
Lecture8 classifiers ldc_rules
Lecture8 classifiers ldc_rulesLecture8 classifiers ldc_rules
Lecture8 classifiers ldc_rules
www.myassignmenthelp.net
 
Programming languages
Programming languagesProgramming languages
Programming languages
www.myassignmenthelp.net
 
Uml assignment help
Uml assignment helpUml assignment help
Uml assignment help
www.myassignmenthelp.net
 
Entity relationship-diagrams
Entity relationship-diagramsEntity relationship-diagrams
Entity relationship-diagrams
www.myassignmenthelp.net
 
Programming assignment-help at myassignmenthelp.net
Programming assignment-help at myassignmenthelp.netProgramming assignment-help at myassignmenthelp.net
Programming assignment-help at myassignmenthelp.net
www.myassignmenthelp.net
 
Programming assignment help
Programming assignment helpProgramming assignment help
Programming assignment help
www.myassignmenthelp.net
 
Entity relationship diagram for dummies
Entity relationship diagram for dummiesEntity relationship diagram for dummies
Entity relationship diagram for dummies
www.myassignmenthelp.net
 
How to write effective case study
How to write effective case studyHow to write effective case study
How to write effective case study
www.myassignmenthelp.net
 
Critical path method example by myassignmenthelp
Critical path method example by myassignmenthelpCritical path method example by myassignmenthelp
Critical path method example by myassignmenthelp
www.myassignmenthelp.net
 
Nursing ppt by myassignmenthelp.net
Nursing ppt by myassignmenthelp.netNursing ppt by myassignmenthelp.net
Nursing ppt by myassignmenthelp.net
www.myassignmenthelp.net
 
Energy efficiency of qantas by myassignmenthelp
Energy efficiency of qantas by myassignmenthelpEnergy efficiency of qantas by myassignmenthelp
Energy efficiency of qantas by myassignmenthelp
www.myassignmenthelp.net
 
Xml programming language myassignmenthelp.net
Xml programming  language myassignmenthelp.netXml programming  language myassignmenthelp.net
Xml programming language myassignmenthelp.net
www.myassignmenthelp.net
 
Learn ActionScript programming myassignmenthelp.net
Learn ActionScript programming myassignmenthelp.netLearn ActionScript programming myassignmenthelp.net
Learn ActionScript programming myassignmenthelp.net
www.myassignmenthelp.net
 
Learn Basics of chemistry myassignmenthelp.net
Learn Basics of chemistry myassignmenthelp.netLearn Basics of chemistry myassignmenthelp.net
Learn Basics of chemistry myassignmenthelp.net
www.myassignmenthelp.net
 
Hysys help only at myassignmenthelp.net
Hysys help only at myassignmenthelp.netHysys help only at myassignmenthelp.net
Hysys help only at myassignmenthelp.net
www.myassignmenthelp.net
 
Materials Flux Analysis @myassignmenthelp.net
Materials Flux Analysis  @myassignmenthelp.netMaterials Flux Analysis  @myassignmenthelp.net
Materials Flux Analysis @myassignmenthelp.net
www.myassignmenthelp.net
 
Aspect-Oriented Software Development with Use Cases
Aspect-Oriented Software Development with Use CasesAspect-Oriented Software Development with Use Cases
Aspect-Oriented Software Development with Use Cases
www.myassignmenthelp.net
 

More from www.myassignmenthelp.net (20)

Programming assignment help by myassignmenthelp
Programming assignment help by myassignmenthelpProgramming assignment help by myassignmenthelp
Programming assignment help by myassignmenthelp
 
Artificial intelligence : what it is
Artificial intelligence : what it isArtificial intelligence : what it is
Artificial intelligence : what it is
 
natural language processing help at myassignmenthelp.net
natural language processing  help at myassignmenthelp.netnatural language processing  help at myassignmenthelp.net
natural language processing help at myassignmenthelp.net
 
Lecture8 classifiers ldc_rules
Lecture8 classifiers ldc_rulesLecture8 classifiers ldc_rules
Lecture8 classifiers ldc_rules
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Uml assignment help
Uml assignment helpUml assignment help
Uml assignment help
 
Entity relationship-diagrams
Entity relationship-diagramsEntity relationship-diagrams
Entity relationship-diagrams
 
Programming assignment-help at myassignmenthelp.net
Programming assignment-help at myassignmenthelp.netProgramming assignment-help at myassignmenthelp.net
Programming assignment-help at myassignmenthelp.net
 
Programming assignment help
Programming assignment helpProgramming assignment help
Programming assignment help
 
Entity relationship diagram for dummies
Entity relationship diagram for dummiesEntity relationship diagram for dummies
Entity relationship diagram for dummies
 
How to write effective case study
How to write effective case studyHow to write effective case study
How to write effective case study
 
Critical path method example by myassignmenthelp
Critical path method example by myassignmenthelpCritical path method example by myassignmenthelp
Critical path method example by myassignmenthelp
 
Nursing ppt by myassignmenthelp.net
Nursing ppt by myassignmenthelp.netNursing ppt by myassignmenthelp.net
Nursing ppt by myassignmenthelp.net
 
Energy efficiency of qantas by myassignmenthelp
Energy efficiency of qantas by myassignmenthelpEnergy efficiency of qantas by myassignmenthelp
Energy efficiency of qantas by myassignmenthelp
 
Xml programming language myassignmenthelp.net
Xml programming  language myassignmenthelp.netXml programming  language myassignmenthelp.net
Xml programming language myassignmenthelp.net
 
Learn ActionScript programming myassignmenthelp.net
Learn ActionScript programming myassignmenthelp.netLearn ActionScript programming myassignmenthelp.net
Learn ActionScript programming myassignmenthelp.net
 
Learn Basics of chemistry myassignmenthelp.net
Learn Basics of chemistry myassignmenthelp.netLearn Basics of chemistry myassignmenthelp.net
Learn Basics of chemistry myassignmenthelp.net
 
Hysys help only at myassignmenthelp.net
Hysys help only at myassignmenthelp.netHysys help only at myassignmenthelp.net
Hysys help only at myassignmenthelp.net
 
Materials Flux Analysis @myassignmenthelp.net
Materials Flux Analysis  @myassignmenthelp.netMaterials Flux Analysis  @myassignmenthelp.net
Materials Flux Analysis @myassignmenthelp.net
 
Aspect-Oriented Software Development with Use Cases
Aspect-Oriented Software Development with Use CasesAspect-Oriented Software Development with Use Cases
Aspect-Oriented Software Development with Use Cases
 

Recently uploaded

NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 

Recently uploaded (20)

NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 

Python assignment help

  • 2. What is Python • Multi-purpose i.e, Web, Graphical user interface (GUI), Scripting and many others. • Strongly typed as well as dynamically typed. • Focus on readability as well as productivity. • Object oriented. • Interpreted. www.myassignmenthelp.net
  • 3. Characteristics • Easy to Learn • High-level Language • Interactive shell • Strong introspection • Cross platform • Object Oriented • Everything is an object • Free and Open Source www.myassignmenthelp.net
  • 4. CONT.. • Useful built-in types (lists, dictionaries) • Clean syntax, powerful extensions • Interpreted • Interactive • Commonly used for producing HTML content on websites. Great for text files • Functional • Extensive Libraries www.myassignmenthelp.net
  • 5. Languages www.myassignmenthelp.net • Few important types: – FORTRAN • Technology – COBOL • Business Information – LISP • Logic as well as AI – BASIC • Easy Language
  • 6. The Python Interpreter • Python can be an interpreted terminology • The actual interpreter has an interactive environment in order to perform using the language • Results >>>> 4 + 5 9 >>>> 4 < 15 True >>>> “print me” “print me” >>>> print “print me” print me >>> > www.myassignmenthelp.net
  • 7. Print “Hello World” • Open a terminal window and type ‘python’ • If on Windows open a Python IDE such as IDLE • At the prompt type “Hello World !!” >>>> ‘Hello World !!' ‘Hello World !!' www.myassignmenthelp.net
  • 8. The print Statement >>>> print “Welcome” Welcome >>>> print “Welcome”, “Ram” Welcome Ram • Elements divided through commas , print with a space between them • The comma at the end from the statement (print “Welcome”,) won't printing the new line character www.myassignmenthelp.net
  • 9. The Documentation >>> > “welcome' ‘welcome' >>> #‘comment' >>> ‘#’ : this symbol is used for starts a comment www.myassignmenthelp.net
  • 10. Variables • Do not need to declare • Should determine (initialize) • Using uninitialized variable improves exception • Certainly not typed in case ,friendly: greeting = “Hello World" else: greeting = 12**2 print greeting • Anything is often a ‘variable’: • Even characteristics, classes, modules www.myassignmenthelp.net
  • 11. Everything is an object • Everything means, which includes functions as well as classes • Data type is usually a property of the object instead of on the variable >>>> x = 9 >>> x 9 >>>> x = “Welcome” >>>> x “Welcome” >>>> www.myassignmenthelp.net
  • 12. Interactive “Shell” • This is good for learning the language • Good for experimenting for using your library • Good for testing for using your own modules • 2 variants: IDLE (GUI), python (command line) • Kind statements or even expressions at prompt: www.myassignmenthelp.net >>>> print "Hello, World" Hello, World >>>> x = 12**2 >>>> x/2 72 >>>> # (this is a comment)
  • 13. Numbers • The typical suspects: • 13, 3.15, 0xFF, 0377, (-1+2)*3/4**5, abs(x), 0<x<=5 • C-style shifting & masking: • 1<<17, x&0xff, x|1, ~x, x^y • Integer division truncates: • 1/2 -> 0 # 1./2. -> 0.5, float(1)/2 -> 0.5 • fixed in the future • Long complicated: • 2L**100 -> 1267650600228229401497607505376L – Within Python 2.2 as well as past, 2**100 will the same www.myassignmenthelp.net
  • 14. Strings • ‘Hello’+ ‘World’ ‘HelloWorld’ # Concatenation • ‘Hello’*2 ‘HelloHello’ # Repetition • ‘Hello’[0] ‘h’ # Indexing • ‘Hello’[-1] ‘o’ # (From end) • ‘Hello’[1:4] ‘ell’ # Slicing • len(‘Hello’) 5 # Size • ‘Hello’< ‘jello’ 1 # Comparison • ‘e’ in ‘hello’ 1 # Search • ‘escapes: n etc, 033 etc, if etc’ • 'single quotes' """triple quotes""" r ‘raw strings’ www.myassignmenthelp.net
  • 15. Lists • Variable arrays, definitely, not Lisp-like linked lists • x = [99, [‘on’, ‘the’, ‘wall’]] • Exact same providers for strings • x+y, x*3, x[0], x[-1], x[1:], len(x) • Item and slice assignment • x[0] = 98 -> [98, [‘on’, ‘the’, ‘wall’]] • del x[-1] # -> [98] www.myassignmenthelp.net
  • 16. Tuples • Tuples tend to be immutable versions associated with lists • One strange may be the structure to create a tuple along with one element: ‘,’ is required to differentiate from the numerical expression (2) >>>> a = (1,2,3) >>> >a[1:] (2, 3) >>>> b = (2,) >>> >b (2,) >>> > www.myassignmenthelp.net
  • 17. Dictionaries • Some key-value sets • Dictionaries tend to be mutable >>> x = {1 : ‘Welcome', ‘Two' : 32, ‘Hi' : [4,5,6]} >>> x {1: ‘Welcome', ‘Two': 32, ‘Hi': [1, 2, 3]} >>> x[‘Hi'] [4,5,6] www.myassignmenthelp.net
  • 18. Standard Library • Core: – operating system, sys, string, StringIO, struct, pickle etc • Regular expressions: – re module, Perl-5 style patterns as well as matching rules • Web: – socket, rfc822, httplib, htmllib etc • Miscellaneous: – pdb – Tkinter, audio etc www.myassignmenthelp.net