You are on page 1of 1

Primitive data structure Compound data structure

-Data Types- Linear Structures


Boolean Tree Structures
Character Hash Structures
Integer Graph Structures PYTHON
Floating-point Guido van Rossum-1991
Double-precision floating point It is used for:
Pointer web development (server-
Fixed-point side),
Categories of algorithm software development,
Search mathematics,
Types of loop Sort system scripting.
Basic operations Insert
Traverse–elements one by one For loop Indentation(space in if-else)
While loop Update
Insertion –adds element Delete
Deletion – deletes element Do while loop
Search – searches element Nested Loop
Update – updates an element Loop Invariant
Display – displays the contents

score = 75

if score >= 90:


Text Type: str print("A")
Operate
Numeric Types: int, float, complex elif score >= 80:
Arithmetic operators
Sequence Types:list, tuple, range print("B")
Assignment operators
Mapping Type:dict elif score >= 70:
Comparison operators
Set Types: set, frozenset print("C")
Logical operators
Boolean Type:bool else:
Identity operators
Binary Types:bytes, bytearray, print("F")
Membership operators
memoryview
Bitwise operators
None Type:NoneType

firstNumber = float(input("Enter a First Number : "))


second Number = float(input("Enter a Second Number : "))

result = firstNumber * secondNumber


print(str(firstNumber) + “*” + str(secondNumber) + " = " + str(result))
#5 *5 = 25

You might also like