Revision Of The Basics Of Python

2y ago
14 Views
2 Downloads
2.54 MB
61 Pages
Last View : 17d ago
Last Download : 3m ago
Upload by : Mollie Blount
Transcription

Newsyllabus2020-21Chapter 1Revision of theBasics of PythonComputer ScienceClass XII ( As per CBSE Board)Visit : python.mykvs.in for regular updates

IntroductionIt is widely used general purpose,high level programminglanguage.Developed by Guido van Rossum in 1991.It is used for:software development,web development (server-side),system scripting,Mathematics.Visit : python.mykvs.in for regular updates

Features of Python1. Easy to use – Due to simple syntax rule2. Interpreted language – Code execution &interpretation line by line3. Cross-platform language – It can run onwindows,linux,macinetosh etc. equally4. Expressive language – Less code to be written as ititself express the purpose of the code.5. Completeness – Support wide rage of library6. Free & Open Source – Can be downloaded freelyand source code can be modify for improvementVisit : python.mykvs.in for regular updates

Shortcomings of Python1. Lesser libraries – as compared to otherprogramming languages like c ,java,.net2. Slow language – as it is interpreted languages,itexecutes the program slowly.3. Weak on Type-binding – It not pin point on use of asingle variable for different data type.Visit : python.mykvs.in for regular updates

How to work in Python(i) in Interactive mode* Search the python.exe file in the drive in which it isinstalled.If found double click it to start python in interactivemodeVisit : python.mykvs.in for regular updates

How to work in Python* Click start button - All programs- python version - IDLE(Python GUI)Visit : python.mykvs.in for regular updates

How to work in PythonPython commandprompt Type the following at promptprint “hello”print 8*3print 3**3k 3 4*3print kVisit : python.mykvs.in for regular updates

How to work in Python(ii) in Script modeStep 1 (Create program file)Below steps are for simple hello world programa. Click Start button- All Programs- Python version - IDLEb. Now click File- New in IDLE Python ShellNow typeprint “hello”print “world”print “python is”,”object oriented programming lang.”c. Click File- Save and then save the file with filenameand .py extensionVisit : python.mykvs.in for regular updates

How to work in Python(ii) in Script modeStep 2 (Run program file)a.b.c.Click Open command from IDLE’s File menu and selectthe file you have already savedClick Run- Run ModuleIt will execute all the commands of program file anddisplay output in separate python shell windowNote :- Python comes in 2 flavours – python 2.x and python 3.x . Later one isBackward incompatible language as decide by Python Software foundation(PSF).Mean code written in 2.x will not execute on 3.x . Visit the below link for differencebetween 2.x & s/Visit : python.mykvs.in for regular updates

Data HandlingMost of the computer programming languagesupport data type, variables,operator and expression likefundamentals.Python also support these.Data TypesData Type specifies which type of value a variable can store.type() function is used to determine a variable's type inPython.Visit : python.mykvs.in for regular updates

Data type continueData Types In Python1. Number2. String3. Boolean4. List5. Tuple6. Set7. DictionaryVisit : python.mykvs.in for regular updates

Data type continue1. Number In PythonIt is used to store numeric valuesPython has three numeric types:1. Integers2. Floating point numbers3. Complex numbers.Visit : python.mykvs.in for regular updates

Data type continue1. IntegersIntegers or int are positive or negativenumbers with no decimal point. Integers in Python3 are of unlimited size.e.g.a 100b -100c 1*20print(a)print(b)print(c)Output :100-100200Visit : python.mykvs.in for regular updates

Data type continueType Conversion of Integerint() function converts any data type to integer.e.g.a "101" # stringb int(a) # converts string da

Computer Science Class XII ( As per CBSE Board) Chapter 1 Revision of the Basics of Python New syllabus 2020-21 Visit : python.mykvs.in for regular updates . # concatenated string Output str- computer science str[0]- c str[1:3]- om str[3:]- puter science str *2- computer sciencecomputer science str '

Related Documents:

May 02, 2018 · D. Program Evaluation ͟The organization has provided a description of the framework for how each program will be evaluated. The framework should include all the elements below: ͟The evaluation methods are cost-effective for the organization ͟Quantitative and qualitative data is being collected (at Basics tier, data collection must have begun)

Silat is a combative art of self-defense and survival rooted from Matay archipelago. It was traced at thé early of Langkasuka Kingdom (2nd century CE) till thé reign of Melaka (Malaysia) Sultanate era (13th century). Silat has now evolved to become part of social culture and tradition with thé appearance of a fine physical and spiritual .

On an exceptional basis, Member States may request UNESCO to provide thé candidates with access to thé platform so they can complète thé form by themselves. Thèse requests must be addressed to esd rize unesco. or by 15 A ril 2021 UNESCO will provide thé nomineewith accessto thé platform via their émail address.

̶The leading indicator of employee engagement is based on the quality of the relationship between employee and supervisor Empower your managers! ̶Help them understand the impact on the organization ̶Share important changes, plan options, tasks, and deadlines ̶Provide key messages and talking points ̶Prepare them to answer employee questions

Dr. Sunita Bharatwal** Dr. Pawan Garga*** Abstract Customer satisfaction is derived from thè functionalities and values, a product or Service can provide. The current study aims to segregate thè dimensions of ordine Service quality and gather insights on its impact on web shopping. The trends of purchases have

Chính Văn.- Còn đức Thế tôn thì tuệ giác cực kỳ trong sạch 8: hiện hành bất nhị 9, đạt đến vô tướng 10, đứng vào chỗ đứng của các đức Thế tôn 11, thể hiện tính bình đẳng của các Ngài, đến chỗ không còn chướng ngại 12, giáo pháp không thể khuynh đảo, tâm thức không bị cản trở, cái được

Le genou de Lucy. Odile Jacob. 1999. Coppens Y. Pré-textes. L’homme préhistorique en morceaux. Eds Odile Jacob. 2011. Costentin J., Delaveau P. Café, thé, chocolat, les bons effets sur le cerveau et pour le corps. Editions Odile Jacob. 2010. Crawford M., Marsh D. The driving force : food in human evolution and the future.

Le genou de Lucy. Odile Jacob. 1999. Coppens Y. Pré-textes. L’homme préhistorique en morceaux. Eds Odile Jacob. 2011. Costentin J., Delaveau P. Café, thé, chocolat, les bons effets sur le cerveau et pour le corps. Editions Odile Jacob. 2010. 3 Crawford M., Marsh D. The driving force : food in human evolution and the future.