0% found this document useful (0 votes)
2 views

Python Introduction

The document provides an overview of basic Python concepts, including definitions of tokens, operators, comments, keywords, and literals. It also covers data types, the input() and print() functions, and includes various exercises such as true/false statements and fill-in-the-blanks. Additionally, it highlights the importance of indentation in Python programming.

Uploaded by

Pallavi Shitole
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Python Introduction

The document provides an overview of basic Python concepts, including definitions of tokens, operators, comments, keywords, and literals. It also covers data types, the input() and print() functions, and includes various exercises such as true/false statements and fill-in-the-blanks. Additionally, it highlights the importance of indentation in Python programming.

Uploaded by

Pallavi Shitole
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SNBP INTERNATIONAL SCHOOL, RAHATANI

CBSE AFFILATION 1130415


Ls 4. Python - Introduction
Page No. 126

A. Tick (√) the correct answer.


1. (a) lowercase 2. (b) Operators
3. (b) Operands 4. (c) Data Types

B. Write ‘T’ for True and ‘F’ for False statements.


1. True 2. False 3. True
4. True 5. True

C. Fill in the blanks.


1. F5 2. Keywords 3. Literals
4 Indentation 5. Statement

D. Define the following.

1. Token: A token is the smallest element of a program that is meaningful to the


interpreter. It is supported in Python include identifiers, delimeters, keywords,
literals and operators.

2. Operator: Operators are the special symbols that carry out arithmetic and
logical computations. The values operated by theoperator are called operands.

3. Comments: Comments are very important while writing a program in Python.


They are used to explain Python code and make it more readable.

E. Differentiate between the following.

Keywords Literals
Keywords are the reserved The fixed values that never
wordsin Python and cannot be used change throughout the
as identifier names. program’s run are called
literals.

F. Answer in 1-2 sentences.

Q1. Who developed Python and when?


Ans. Python was developed by Guido van Rossum in 1991.

Q2. What do you mean by identifier?


Ans. A name consisting of letters, digits, and/or an underscore (_) to
identify a function, variable, class, etc. is known as an identifier.

Class 6/ Ls 8- Python - Introduction 1


Q3. What are variables?
Ans. Variables are the memory locations used to store data in memory.The
data can be numbers, text and/or objects.
Q4. What do you understand by indentation?
Ans. Indentation is an empty space at the beginning of block of code.
Python uses it to express the block structure of a program.
G. Answer briefly.
Q1. How many data types are used in Python? Explain in detail.
Ans. There are three data types used in Python. They are- Integer, Float,
String.
Integer are the whole numbers consisting of + or –sign without decimal
point such as 1000.
Float data type represents floating point numbers which contain
decimal point.
String is a sequence of characters (letters, numbers, operators and
punctuation) used to store and represent text-based information.

Q2. Define input() and print() functions of Python.


Ans. An input () function is used to get input from user. This function
helps user to input the values and text for the operation. The input ()
function always returns string value.
The print () function is used to print the value of given input value or
string. It helps to show output on screen.

H. Application-based Question.

Ans. She should use INT function as an integer value.

Class 6/ Ls 8- Python - Introduction 2

You might also like