Computer Science, asked by prajapatiramkaran66, 6 months ago

1. Write the features of Python Language.
2. Write the name of working modes of Python and explain these.
3. What is the difference between Interactive Mode and Script Mode?
4. What is a variable?
5. What are the rules to write the Variables names?
6. Define Data Type. Write all the Data Types in Python.
7. What is Input Function?
8. What is Operator? Write all the operators used in Python.​

Answers

Answered by nayanborgohain17
4

1. Features of Python language.

Easy to code: Python is a high-level programming language.

Free and Open Source.

Object-Oriented Language.

GUI Programming Support.

High-Level Language.

Extensible feature

2. Python has two basic modes: script and interactive. The normal mode is the mode where the scripted and finished . py files are run in the Python interpreter. Interactive mode is a command line shell which gives immediate feedback for each statement, while running previously fed statements in active memory.

3. The interactive mode involves running your codes directly on the Python shell which can be accessed from the terminal of the operating system. In the script mode, you have to create a file, give it a name with a . py the extension then runs your code. The interactive mode is suitable when running a few lines of code.

4.Variables are containers for storing data values. Unlike other programming languages, Python has no command for declaring a variable. A variable is created the moment you first assign a value to it.

5.Rules for Python variables:

A variable name must start with a letter or the underscore character.

A variable name cannot start with a number.

A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ )

Variable names are case-sensitive (age, Age and AGE are three different variables)

6. In Python, numeric data type represent the data which has numeric value. Numeric value can be integer, floating number or even complex numbers. These values are defined as int , float and complex class in Python. Integers – This value is represented by int class.

7. The function input() presents a prompt to the user (the optional arg of raw_input([arg])), gets input from the user. ... x, it returns the data input by the user in a format that is interpreted by python. For example, if the user inputs "Hello", it is stored as string while if a user enters 5, it is interpreted as an int.

8.Operators are special symbols in Python that carry out arithmetic or logical computation. The value that the operator operates on is called the operand.

Python divides the operators in the following groups:

  • Arithmetic operators.
  • Assignment operators.
  • Comparison operators.
  • Logical operators.
  • Identity operators.
  • Membership operators.
  • Bitwise operators.

Answered by XxDREAMKINGxX
1

Answer:

I hope you got your answer

Attachments:
Similar questions