Basics of Python Programming
Informatics PracticesClass XI ( Asper CBSEBoard)Chapter 5Basics ofPython ProgrammingNew syllabus 2020-21Visit : for regularupdatesBasics of Python ProgrammingStructureofapythonprogramProg ram|->Module -> main program|-> functios|->libraries|->Statements -> simple statement|->compound statement|->expressions -> Operators|-> expressions|---- objects ->data modelVisit : for regular updatesPython , Character : A-Z,a-zDigits : 0-9Special symbols : Special symbol available over keyboard White spaces: blank space,tab,carriagereturn,newline, form feedOther characters:-UnicodeVisit : for regular updatesInput and OutputVisit : for regular updatesvar1= Computer Science'var2= Informatics Practices'print(var1,' and ',var2,' )Output :-Computer Science and Informatics Practicesraw_input()Function In Python allows a user to give input to a program from a keyboard but in the form of : raw_input() function is deprecated in Python = int(raw_input( enter your age ))percentage = float(raw_input( enter percentage ))input()Function In Python allows a user to give input to a program from a keyboard but returns the value age = int(input( enter your age ))C = age+2 #will not produce any
Python basics Python 3.0 was released in 2008. Although this version is supposed to be backward incompatibles, later on many of its important features have been back ported to be compatible with version 2.7 Python Character Set A set of valid characters recognized by python. Python uses the traditional ASCII character set.
Download Basics of Python Programming
Information
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document: