Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
57 views
3 pages
Class 7 - Chapter 6
Uploaded by
Ayush
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save Class 7 - Chapter 6 (1) For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
57 views
3 pages
Class 7 - Chapter 6
Uploaded by
Ayush
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save Class 7 - Chapter 6 (1) For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 3
Search
Fullscreen
CHAPTER 6- INTRODUCING PYTHON Brain Developer A. Fill in the blanks: 1. Syntax 2. Guido Van Rossum 3. Edit4, Line by line 5. Variable 6. Keyword B. State True or False: True True True False False True . True C. Application Based Questions: 1, Kritika should use '\t' separator with the print() function. 2. Aman should use Interactive mode. D. Multiple Choice Questions: 1. ¢) List 2. b) Overwritten 3. ¢) Assignment 4. b) float S. a) \t 6. c) Script area 7. b) 1020 E. Answer the following: 1. Some of the features which make Python so popular are as follows: + Itis an easy to learn general-purpose programming language. * Itis a platform independent programming language, which means it can be used on any machine and in any operating system. + Ithas a simple syntax. * Python is a case sensitive language. * Itis an interpreted language. * It is free to use and even for commercial products, 2. Avariable stores data values. It can store only one data value at a time. When a new value is stored in a variable, its previous value gets overwritten, The rules for valid identifier (variable name) are: . A variable name must start with an alphabet (capital or small) or an underscore (_ ). * Avariable name can consist of alphabets, digits, and underscore. No other character is allowed. * APython keyword cannot be used as a variable name. © Avariable name can be of any length. Variable names are case-sensitive (e.g., Age and age are different variable names). 3. Python works in two modes: Interactive mode and Script mode. MoyaenreIn the Interactive mode of Python, the instructions are executed line by line giving the output. Interactive mode is preferred for small programs, where only a few commands are to be executed. This mode is also beneficial for testing code where you type the commands one at a time and get the result or error immediately. Whereas, for writing lengthy programs in Python, Script mode is used. Using this mode, we can Create and edit Python programs. In this mode, we can save our file so that it can be used later. The complete script is written in an editor, such as a Notepad in Windows. A data type represents the type of data stored in a variable. Python has various standard data types based on the types of values stored in variables. Some examples of data types used in Python are, int, float, str, bool. float: Represents floating point values (numbers with fractional part). The fractional part of a floating point number may be 0 as well. Examples of floating point numbers are, 3.14, -48.6, 18.0, etc. str (String): String data type represents strings of characters enclosed within quotation marks, for example, ‘Hello’. . The print() function is used to display the output of any command on the screen. We can also pass more than one argument to the print()function. Separators are used with the print() function to format the output. The separators used in Python are- Using ',' operator : When you use ',' operator as the separator among the values, the values are displayed with a space between them. Using '\t' (tab space): When you use ‘\t' escape sequence as the separator among the values, the values are displayed with a tab space between them. Using '\n' (Newline character): A newline character in Python is used to end a line and start a new line. In Python, the new line character can be used with the input function and with the print function. Interpreter is a language processor. When you type a command next to the python prompt (>>>) in the interactive mode of Python, and press the Enter key, the interpreter converts the command into machine language. After processing, the interpreter again converts the machine code into human readable form (output). A compiler is also a language processor that converts a program written in high-level language into machine language, and vice versa, just like an interpreter. However, unlike an interpreter, a compiler does this in one single step.
You might also like
Python Notes For BCA
PDF
78% (9)
Python Notes For BCA
101 pages
Python
PDF
No ratings yet
Python
110 pages
Class 8 Civics CH 3 Extra Questions
PDF
No ratings yet
Class 8 Civics CH 3 Extra Questions
8 pages
ch-1 Introduction To Python
PDF
No ratings yet
ch-1 Introduction To Python
33 pages
Class 6th Python
PDF
0% (1)
Class 6th Python
16 pages
Python Notes
PDF
100% (4)
Python Notes
119 pages
Python Full Notes
PDF
No ratings yet
Python Full Notes
69 pages
Python Coding Grade 6
PDF
No ratings yet
Python Coding Grade 6
30 pages
Python Workshop-Day1
PDF
No ratings yet
Python Workshop-Day1
45 pages
Lec 01 - Intro and Basics
PDF
No ratings yet
Lec 01 - Intro and Basics
43 pages
Introduction To Python - Notes
PDF
No ratings yet
Introduction To Python - Notes
28 pages
Unit 2 Python
PDF
No ratings yet
Unit 2 Python
13 pages
Python Notes Second Semester BVOC Computer Application
PDF
No ratings yet
Python Notes Second Semester BVOC Computer Application
27 pages
Final PYTHON NOTES
PDF
No ratings yet
Final PYTHON NOTES
8 pages
Introduction To Python
PDF
No ratings yet
Introduction To Python
46 pages
Python Introduction
PDF
No ratings yet
Python Introduction
28 pages
Cca62-Python Programming
PDF
No ratings yet
Cca62-Python Programming
53 pages
Noteschapter
PDF
No ratings yet
Noteschapter
124 pages
4 K FGG DT2 W 6 W KQDQH Huka
PDF
No ratings yet
4 K FGG DT2 W 6 W KQDQH Huka
86 pages
P1 (1) - Merged
PDF
No ratings yet
P1 (1) - Merged
53 pages
1 - Introduction To Python
PDF
No ratings yet
1 - Introduction To Python
44 pages
Project 9
PDF
No ratings yet
Project 9
73 pages
Introduction To Programming
PDF
No ratings yet
Introduction To Programming
93 pages
Unit 2
PDF
No ratings yet
Unit 2
83 pages
Python Module1
PDF
No ratings yet
Python Module1
55 pages
Introduction To Python
PDF
No ratings yet
Introduction To Python
36 pages
1 and 2 Python
PDF
No ratings yet
1 and 2 Python
50 pages
Python Thops
PDF
No ratings yet
Python Thops
59 pages
Python Notes
PDF
No ratings yet
Python Notes
29 pages
2 Introduction To Python1
PDF
No ratings yet
2 Introduction To Python1
49 pages
Workshop On Python For Beginners: Hearty Welcomes To
PDF
No ratings yet
Workshop On Python For Beginners: Hearty Welcomes To
35 pages
0.2 Getting Started With Python
PDF
No ratings yet
0.2 Getting Started With Python
51 pages
PWP Unit 1 Notes
PDF
No ratings yet
PWP Unit 1 Notes
30 pages
Chapt 1
PDF
No ratings yet
Chapt 1
49 pages
Chapt 1
PDF
No ratings yet
Chapt 1
47 pages
Namma Kalvi 12th Computer Applications Chapter 5 PPT em 220247
PDF
No ratings yet
Namma Kalvi 12th Computer Applications Chapter 5 PPT em 220247
85 pages
Final
PDF
No ratings yet
Final
20 pages
Python Programming Notes - Part 2
PDF
No ratings yet
Python Programming Notes - Part 2
25 pages
Module 1-4
PDF
No ratings yet
Module 1-4
26 pages
E Accts Easyweb Chettinad Chettinadadmin Homework 011018 9HCSC011018 PDF
PDF
No ratings yet
E Accts Easyweb Chettinad Chettinadadmin Homework 011018 9HCSC011018 PDF
12 pages
Dual Pyq 2023
PDF
No ratings yet
Dual Pyq 2023
14 pages
Python Programming
PDF
No ratings yet
Python Programming
68 pages
Python Notes FINAL
PDF
No ratings yet
Python Notes FINAL
59 pages
Python
PDF
No ratings yet
Python
13 pages
Python Programming
PDF
No ratings yet
Python Programming
24 pages
Introdution To Python
PDF
No ratings yet
Introdution To Python
8 pages
CH 5 Getting Started With Python Part1
PDF
No ratings yet
CH 5 Getting Started With Python Part1
13 pages
Chapter Python Fundamental
PDF
No ratings yet
Chapter Python Fundamental
16 pages
Semiconductor Pyq 2023
PDF
No ratings yet
Semiconductor Pyq 2023
11 pages
Phython Reviewer Python
PDF
No ratings yet
Phython Reviewer Python
15 pages
Lecture - 01
PDF
No ratings yet
Lecture - 01
25 pages
UNIT-1 Introduction and Syntax of Python Program
PDF
No ratings yet
UNIT-1 Introduction and Syntax of Python Program
11 pages
PWP Unit 1 Notes
PDF
No ratings yet
PWP Unit 1 Notes
21 pages
Haloalkanes and Haloarenes - CBSE Ex-3 Sol File
PDF
No ratings yet
Haloalkanes and Haloarenes - CBSE Ex-3 Sol File
5 pages
Class Xi AI-chinhat
PDF
No ratings yet
Class Xi AI-chinhat
16 pages
Introduction To Pyhon
PDF
No ratings yet
Introduction To Pyhon
22 pages
IP Notes Python Introduction
PDF
No ratings yet
IP Notes Python Introduction
15 pages
Simple Syntax
PDF
No ratings yet
Simple Syntax
11 pages
UNIT 1 PPT - Final-Compressed
PDF
No ratings yet
UNIT 1 PPT - Final-Compressed
88 pages
Python Session
PDF
No ratings yet
Python Session
33 pages
Unit 1 - Python Basics, Control Structures and Other Features
PDF
No ratings yet
Unit 1 - Python Basics, Control Structures and Other Features
73 pages
Python Programming Module 1
PDF
No ratings yet
Python Programming Module 1
24 pages
Introduction To Python-Basics
PDF
No ratings yet
Introduction To Python-Basics
23 pages
Python Unit 1 Notes
PDF
No ratings yet
Python Unit 1 Notes
16 pages
Python Unit2
PDF
No ratings yet
Python Unit2
48 pages