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
Ad

More Related Content

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
Smarkup
 
Jquery fundamentals
Jquery fundamentalsJquery fundamentals
Jquery fundamentals
Salvatore Fazio
 
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
 
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
 
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 Programming (well, kind of.)
Introduction to Programming (well, kind of.)Introduction to Programming (well, kind of.)
Introduction to Programming (well, kind of.)
Julie Meloni
 

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#
guidotic
 
20160012076
2016001207620160012076
20160012076
WJ 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
 
Unsd2014 ind999
Unsd2014 ind999Unsd2014 ind999
Unsd2014 ind999
maswid_sombrero
 
Morris appp key
Morris appp keyMorris appp key
Morris appp key
Aaron Morris
 
20160150270
2016015027020160150270
20160150270
WJ 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 0810
mayankvns
 
MOCT
MOCTMOCT
MOCT
Seminar Links
 
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
 
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
20160012076
WJ 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
 
20160150270
2016015027020160150270
20160150270
WJ 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 0810
mayankvns
 
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
 
Ad

Similar to Python assignment help (20)

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
 
Ruby1_full
Ruby1_fullRuby1_full
Ruby1_full
tutorialsruby
 
Ruby1_full
Ruby1_fullRuby1_full
Ruby1_full
tutorialsruby
 
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 Browsers
noweverywhere
 
Javascript
JavascriptJavascript
Javascript
Sunil Thakur
 
Code Like Pythonista
Code Like PythonistaCode Like Pythonista
Code Like Pythonista
Chiyoung Song
 
Introducing BoxLang : A new JVM language for productivity and modularity!
Introducing BoxLang : A new JVM language for productivity and modularity!Introducing BoxLang : A new JVM language for productivity and modularity!
Introducing BoxLang : A new JVM language for productivity and modularity!
Ortus Solutions, Corp
 
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 PHP
BUDNET
 
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
Dirk Ginader
 
Intro to Python
Intro to PythonIntro to Python
Intro to Python
Tarek Abdul-Kader , Android Developer
 
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
 
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 Browsers
noweverywhere
 
Code Like Pythonista
Code Like PythonistaCode Like Pythonista
Code Like Pythonista
Chiyoung Song
 
Introducing BoxLang : A new JVM language for productivity and modularity!
Introducing BoxLang : A new JVM language for productivity and modularity!Introducing BoxLang : A new JVM language for productivity and modularity!
Introducing BoxLang : A new JVM language for productivity and modularity!
Ortus Solutions, Corp
 
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 PHP
BUDNET
 
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
Dirk Ginader
 
Learn Ruby 2011 - Session 3
Learn Ruby 2011 - Session 3Learn Ruby 2011 - Session 3
Learn Ruby 2011 - Session 3
James Thompson
 
Ad

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
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
 
Programming assignment help by myassignmenthelp
Programming assignment help by myassignmenthelpProgramming assignment help by myassignmenthelp
Programming assignment help by myassignmenthelp
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
 
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
 
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
 
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
 
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
 

Recently uploaded (20)

Transport modelling at SBB, presentation at EPFL in 2025
Transport modelling at SBB, presentation at EPFL in 2025Transport modelling at SBB, presentation at EPFL in 2025
Transport modelling at SBB, presentation at EPFL in 2025
Antonin Danalet
 
Automatic Quality Assessment for Speech and Beyond
Automatic Quality Assessment for Speech and BeyondAutomatic Quality Assessment for Speech and Beyond
Automatic Quality Assessment for Speech and Beyond
NU_I_TODALAB
 
vtc2018fall_otfs_tutorial_presentation_1.pdf
vtc2018fall_otfs_tutorial_presentation_1.pdfvtc2018fall_otfs_tutorial_presentation_1.pdf
vtc2018fall_otfs_tutorial_presentation_1.pdf
RaghavaGD1
 
Physical and Physic-Chemical Based Optimization Methods: A Review
Physical and Physic-Chemical Based Optimization Methods: A ReviewPhysical and Physic-Chemical Based Optimization Methods: A Review
Physical and Physic-Chemical Based Optimization Methods: A Review
Journal of Soft Computing in Civil Engineering
 
introduction technology technology tec.pptx
introduction technology technology tec.pptxintroduction technology technology tec.pptx
introduction technology technology tec.pptx
Iftikhar70
 
Water Industry Process Automation & Control Monthly May 2025
Water Industry Process Automation & Control Monthly May 2025Water Industry Process Automation & Control Monthly May 2025
Water Industry Process Automation & Control Monthly May 2025
Water Industry Process Automation & Control
 
Generative AI & Large Language Models Agents
Generative AI & Large Language Models AgentsGenerative AI & Large Language Models Agents
Generative AI & Large Language Models Agents
aasgharbee22seecs
 
acid base ppt and their specific application in food
acid base ppt and their specific application in foodacid base ppt and their specific application in food
acid base ppt and their specific application in food
Fatehatun Noor
 
Slide share PPT of SOx control technologies.pptx
Slide share PPT of SOx control technologies.pptxSlide share PPT of SOx control technologies.pptx
Slide share PPT of SOx control technologies.pptx
vvsasane
 
JRR Tolkien’s Lord of the Rings: Was It Influenced by Nordic Mythology, Homer...
JRR Tolkien’s Lord of the Rings: Was It Influenced by Nordic Mythology, Homer...JRR Tolkien’s Lord of the Rings: Was It Influenced by Nordic Mythology, Homer...
JRR Tolkien’s Lord of the Rings: Was It Influenced by Nordic Mythology, Homer...
Reflections on Morality, Philosophy, and History
 
Working with USDOT UTCs: From Conception to Implementation
Working with USDOT UTCs: From Conception to ImplementationWorking with USDOT UTCs: From Conception to Implementation
Working with USDOT UTCs: From Conception to Implementation
Alabama Transportation Assistance Program
 
Design Optimization of Reinforced Concrete Waffle Slab Using Genetic Algorithm
Design Optimization of Reinforced Concrete Waffle Slab Using Genetic AlgorithmDesign Optimization of Reinforced Concrete Waffle Slab Using Genetic Algorithm
Design Optimization of Reinforced Concrete Waffle Slab Using Genetic Algorithm
Journal of Soft Computing in Civil Engineering
 
AI Chatbots & Software Development Teams
AI Chatbots & Software Development TeamsAI Chatbots & Software Development Teams
AI Chatbots & Software Development Teams
Joe Krall
 
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdfML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
rameshwarchintamani
 
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
PawachMetharattanara
 
Citizen Observatories to encourage more democratic data evidence-based decisi...
Citizen Observatories to encourage more democratic data evidence-based decisi...Citizen Observatories to encourage more democratic data evidence-based decisi...
Citizen Observatories to encourage more democratic data evidence-based decisi...
Diego López-de-Ipiña González-de-Artaza
 
Construction-Chemicals-For-Waterproofing.ppt
Construction-Chemicals-For-Waterproofing.pptConstruction-Chemicals-For-Waterproofing.ppt
Construction-Chemicals-For-Waterproofing.ppt
ssuser2ffcbc
 
Environment .................................
Environment .................................Environment .................................
Environment .................................
shadyozq9
 
Applications of Centroid in Structural Engineering
Applications of Centroid in Structural EngineeringApplications of Centroid in Structural Engineering
Applications of Centroid in Structural Engineering
suvrojyotihalder2006
 
Agents chapter of Artificial intelligence
Agents chapter of Artificial intelligenceAgents chapter of Artificial intelligence
Agents chapter of Artificial intelligence
DebdeepMukherjee9
 
Transport modelling at SBB, presentation at EPFL in 2025
Transport modelling at SBB, presentation at EPFL in 2025Transport modelling at SBB, presentation at EPFL in 2025
Transport modelling at SBB, presentation at EPFL in 2025
Antonin Danalet
 
Automatic Quality Assessment for Speech and Beyond
Automatic Quality Assessment for Speech and BeyondAutomatic Quality Assessment for Speech and Beyond
Automatic Quality Assessment for Speech and Beyond
NU_I_TODALAB
 
vtc2018fall_otfs_tutorial_presentation_1.pdf
vtc2018fall_otfs_tutorial_presentation_1.pdfvtc2018fall_otfs_tutorial_presentation_1.pdf
vtc2018fall_otfs_tutorial_presentation_1.pdf
RaghavaGD1
 
introduction technology technology tec.pptx
introduction technology technology tec.pptxintroduction technology technology tec.pptx
introduction technology technology tec.pptx
Iftikhar70
 
Generative AI & Large Language Models Agents
Generative AI & Large Language Models AgentsGenerative AI & Large Language Models Agents
Generative AI & Large Language Models Agents
aasgharbee22seecs
 
acid base ppt and their specific application in food
acid base ppt and their specific application in foodacid base ppt and their specific application in food
acid base ppt and their specific application in food
Fatehatun Noor
 
Slide share PPT of SOx control technologies.pptx
Slide share PPT of SOx control technologies.pptxSlide share PPT of SOx control technologies.pptx
Slide share PPT of SOx control technologies.pptx
vvsasane
 
AI Chatbots & Software Development Teams
AI Chatbots & Software Development TeamsAI Chatbots & Software Development Teams
AI Chatbots & Software Development Teams
Joe Krall
 
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdfML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
rameshwarchintamani
 
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
PawachMetharattanara
 
Citizen Observatories to encourage more democratic data evidence-based decisi...
Citizen Observatories to encourage more democratic data evidence-based decisi...Citizen Observatories to encourage more democratic data evidence-based decisi...
Citizen Observatories to encourage more democratic data evidence-based decisi...
Diego López-de-Ipiña González-de-Artaza
 
Construction-Chemicals-For-Waterproofing.ppt
Construction-Chemicals-For-Waterproofing.pptConstruction-Chemicals-For-Waterproofing.ppt
Construction-Chemicals-For-Waterproofing.ppt
ssuser2ffcbc
 
Environment .................................
Environment .................................Environment .................................
Environment .................................
shadyozq9
 
Applications of Centroid in Structural Engineering
Applications of Centroid in Structural EngineeringApplications of Centroid in Structural Engineering
Applications of Centroid in Structural Engineering
suvrojyotihalder2006
 
Agents chapter of Artificial intelligence
Agents chapter of Artificial intelligenceAgents chapter of Artificial intelligence
Agents chapter of Artificial intelligence
DebdeepMukherjee9
 

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
  翻译: