Online Shiksha

By Savita S. More

Class 8 Computer More on Python

A=10

B=20

Print(max(a,b))

The output of the code print(max(a, b)) will be 20, as it prints the maximum value between variables a and b.

 

Q- Which data types is used to store whole numbers?

The data type used to store whole numbers is int (integer).

 

Q- Which datatypes is used to store a series of characters?

The data type used to store a series of characters is str (string).

 

Q- Mention the name of any two types of operator?

Two types of operators are arithmetic operators (e.g., +, -, *, /) and relational operators (e.g., ==, <, >).

 

Q- What is arguments and parameters?

Parameters are special variables in a function definition that are used to pass values into the function. Arguments are the actual values passed to the function when it is called.

 

Q- Which symbol is used to write comment in python?

The symbol # is used to write comments in Python.

 

Q- Mention the examples of data structures.

Examples of data structures include lists, tuples, dictionaries, and sets.

 

Q- What is the full form of ide and idle?

The full form of IDE is Integrated Development Environment, while IDLE stands for Integrated Development and Learning Environment (which is specific to Python).

 

Q- In python list is always start with……………

In Python, a list is always started with [ (an opening square bracket).

 

Q- At a time a variable holds ……….. Value.

At a time, a variable holds a single value in Python.

 

Leave a Reply

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

online-shiksha © 2023 Frontier Theme