0% found this document useful (0 votes)
24 views2 pages

Learning Python Beginner Level

Uploaded by

Mubeen Raza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views2 pages

Learning Python Beginner Level

Uploaded by

Mubeen Raza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

LEARNING PYTHON BEGINNER

LEVEL
1. WHAT IS STRING?

String basically means sequence of characters/Textual data

Example: print(“Hello world”)

Here print is a function which we can use to print our message on application window

Whenever we are using textual data we should always surround our text with textual data. In
python we can surround over text with single (‘’) or double (“”) quotes.

2. What is Variable?

We use variables to temporarily store data in our computer.

Example:
age = 20

first_name = "john smith"

new_patient = "new patient"

In python we can use decimal number 19.96 or whole number 20.

3. What is input?

In python there is a built in function called Input which is used to read to read value from the
terminal window.

TYPE OF CONVERSATION IN PYTHON

 INT() TO CONVERST AN INTEGER VALUE


 STR() TO CONVERT A STRING
 Float() to convert a decimal number 10.09
 Bool() for converting a value to a Boolean

TYPES OF ARTHIMATIC OPERATOR IN PYTHON

 +
 *
 -
 /
 // (shows the result in whole number)
 % Modulo Operator. It returns the remainder of dividing the left hand operand by
right hand operand. It's used to get the remainder of a division problem
 ** power operator (10 **3 this menas 10 to the power of 3 )
 Augmented assignment operator +=,-=,*=,/=
TYPES OF COMAPRISON OPERATOR

WE USE THESE OPERATOR TO COMPARE VALUES

 > Greater than


 < Less than
 >= Greater than or equal to
 <= Less than or equal to
 == Equal to
 != Not Equal to

TYPES OF LOGICAL OPERATORS

WE USE THESE OPERATOR TO BUILT COMPLES RULES AND CONDITIONS

 and // shows TRUE if both of the Boolean expressions are true


 or // Shows true if one of the Boolean expression is TRUE
 not // Basically inverse of the Boolean expression

STATEMENTS IN PYTHON

You might also like