Online Shiksha

By Savita S. More

Class 8 Computer More on Python

Learn Class 8 Computer More on Python

 

Q- Which command is used to display statement in python?

The command used to display a statement in Python is print().

 

Q- Which command used to take value from user?

The command used to take a value from the user is input().

 

Q- What is built in function?

A built-in function is a function that is provided by Python itself and can be readily accessed by users without needing to define it.

 

Q- Which statements are used to perform an action based on a given condition?

Conditional statements (if, elif, and else statements) are used to perform actions based on given conditions.

 

Q- What do you mean by operands?

Operands are the variables or values upon which an operator performs an operation.

 

Q- What is the use of len()?

The len() function is used to determine the length of a sequence, such as a string, list, or tuple.

 

Q- What is function?

A function is a block of reusable code that performs a specific task.

 

Q- Which keyword is used to define function?

The def keyword is used to define a function in Python.

 

Q- Which keyword is used with for loop?

The for keyword is used with the for loop in Python.

 

Q- Which keyword is used to add item in list?

The append() method is used to add an item to a list in Python.

 

Q- What is the output of below code?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

online-shiksha © 2023 Frontier Theme