Basics of Python | Python for beginners

 

Hey all, Welcome to Geeksforjobs

What is a dragon?

Python There is an explanation, higher level, object oriented And general purpose programming language. 3 important words mentioned in the definition means

  1. Explained: Goes through an interpreter, which replaces the code you write in machine language.
  2. high level: Enable Programmers to write programs that are more or less independent of a particular type of computer.
  3. object oriented: Object-Oriented Programming (OOP) is a programming language model that is organized around data rather than “action” and logic instead of objects.
  4. General Purpose: It can be used in various domains such as data science, artificial intelligence (AI), machine-learning, etc.

Keywords, variables and expressions in Python

Keywords: Keywords are reserved words in Python. In Python, the keywords are case sensitive. We can’t use keywords Variable Name and function. In college truth, false And No one Start with a capital letter.

and         del       from        not       while    
as           elif       global      or        with     
assert     else      if             pass     yield    
break     except   import     print              
class      exec      in           raise              
continue  finally   is           return             
def          for       lambda   try

Variable:

A variable is a named location that is used Data store in memory of. The variable is a bucket that holds data that can be changed later in the program. A variable must not contain any special characters Underscore (_).

Expressions:

Statements of an expression are used to write or write a value, or to call a process. Python expressions include identifier, literal, and operator.

A) identifier: Any name used to define a class, function, variable module, or object is an identifier.

B) Literals: These are language-independent terms in Python. Python as literal are categories Wire Literally, Byte Literally, Maximum Marks Literally, WalkPoint Literally, and Dreamy Literally.

C) Operators: In Python, the operators are:

The operator operation
+ other than this
Subtraction
/ the division
** category
% Modulo operator (remaining)
<,> Over, less than

Priority of operation:

1) brackets

2) power

3) Division

4) Multiplication

5) joint

6) left to right

Why is Python liked?

A) There is no need to define the type of variable in python user

b) The time required to write the code is less

c) easy to learn

D) Used in various applications.

Leave a Comment

Your email address will not be published. Required fields are marked *