SlideShare ist ein Scribd-Unternehmen logo
1 von 19
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

Weitere ähnliche Inhalte

Was ist angesagt?

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, SmarkupSmarkup
 
Jquery fundamentals
Jquery fundamentalsJquery fundamentals
Jquery fundamentalsSalvatore Fazio
 
Javascript for the c# developer
Javascript for the c# developerJavascript for the c# developer
Javascript for the c# developerSalvatore Fazio
 
Ce e nou in Rails 4
Ce e nou in Rails 4Ce e nou in Rails 4
Ce e nou in Rails 4Florin 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 Academyjeresig
 
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 RailsSimobo
 
An introduction to jQuery
An introduction to jQueryAn introduction to jQuery
An introduction to jQueryJames Wragg
 
FFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTMLFFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTMLToni 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
 

Was ist angesagt? (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.)
 

Andere mochten auch

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 pagejackettinger1998
 
Morris appp key
Morris appp keyMorris appp key
Morris appp keyAaron Morris
 
20160150270
2016015027020160150270
20160150270WJ Chang
 
Automation and flow control
Automation and flow controlAutomation and flow control
Automation and flow controllunchNtouch
 
Unemployt inflation output 0810
Unemployt inflation output 0810Unemployt inflation output 0810
Unemployt inflation output 0810mayankvns
 
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
 

Andere mochten auch (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!
 

Ähnlich wie Python assignment help

Python Programming and GIS
Python Programming and GISPython Programming and GIS
Python Programming and GISJohn 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 KGDSCKYAMBOGO
 
JavaScript: Creative Coding for Browsers
JavaScript: Creative Coding for BrowsersJavaScript: Creative Coding for Browsers
JavaScript: Creative Coding for Browsersnoweverywhere
 
Code Like Pythonista
Code Like PythonistaCode Like Pythonista
Code Like PythonistaChiyoung Song
 
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-1Vikram Nandini
 
Python.pptx
Python.pptxPython.pptx
Python.pptxAshaS74
 
Boost Maintainability
Boost MaintainabilityBoost Maintainability
Boost MaintainabilityMosky 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
 
Learn Ruby 2011 - Session 3
Learn Ruby 2011 - Session 3Learn Ruby 2011 - Session 3
Learn Ruby 2011 - Session 3James Thompson
 
Python programming
Python programmingPython programming
Python programmingGanesh Bhosale
 
Professional Help for PowerShell Modules
Professional Help for PowerShell ModulesProfessional Help for PowerShell Modules
Professional Help for PowerShell ModulesJune Blender
 

Ähnlich wie 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
 

Mehr von www.myassignmenthelp.net

Programming assignment help by myassignmenthelp
Programming assignment help by myassignmenthelpProgramming assignment help by myassignmenthelp
Programming assignment help by myassignmenthelpwww.myassignmenthelp.net
 
Artificial intelligence : what it is
Artificial intelligence : what it isArtificial intelligence : what it is
Artificial intelligence : what it iswww.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.netwww.myassignmenthelp.net
 
Programming assignment-help at myassignmenthelp.net
Programming assignment-help at myassignmenthelp.netProgramming assignment-help at myassignmenthelp.net
Programming assignment-help at myassignmenthelp.netwww.myassignmenthelp.net
 
Entity relationship diagram for dummies
Entity relationship diagram for dummiesEntity relationship diagram for dummies
Entity relationship diagram for dummieswww.myassignmenthelp.net
 
Critical path method example by myassignmenthelp
Critical path method example by myassignmenthelpCritical path method example by myassignmenthelp
Critical path method example by myassignmenthelpwww.myassignmenthelp.net
 
Energy efficiency of qantas by myassignmenthelp
Energy efficiency of qantas by myassignmenthelpEnergy efficiency of qantas by myassignmenthelp
Energy efficiency of qantas by myassignmenthelpwww.myassignmenthelp.net
 
Xml programming language myassignmenthelp.net
Xml programming  language myassignmenthelp.netXml programming  language myassignmenthelp.net
Xml programming language myassignmenthelp.netwww.myassignmenthelp.net
 
Learn ActionScript programming myassignmenthelp.net
Learn ActionScript programming myassignmenthelp.netLearn ActionScript programming myassignmenthelp.net
Learn ActionScript programming myassignmenthelp.netwww.myassignmenthelp.net
 
Learn Basics of chemistry myassignmenthelp.net
Learn Basics of chemistry myassignmenthelp.netLearn Basics of chemistry myassignmenthelp.net
Learn Basics of chemistry myassignmenthelp.netwww.myassignmenthelp.net
 
Hysys help only at myassignmenthelp.net
Hysys help only at myassignmenthelp.netHysys help only at myassignmenthelp.net
Hysys help only at myassignmenthelp.netwww.myassignmenthelp.net
 
Materials Flux Analysis @myassignmenthelp.net
Materials Flux Analysis  @myassignmenthelp.netMaterials Flux Analysis  @myassignmenthelp.net
Materials Flux Analysis @myassignmenthelp.netwww.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 Caseswww.myassignmenthelp.net
 

Mehr von 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
 

KĂźrzlich hochgeladen

Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 

KĂźrzlich hochgeladen (20)

Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 

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