Operation
' '
or" "
= quotes (use in print command to print single line)""" """
= three quotes (use to print multiple line in a single print line)+
= addition (use for mathematical operation)
= subtraction (use for mathematical operation)/
= division (use for mathematical operation)*
= multiplication (use for mathematical operation)()
= circular brackets (parentheses use for mathematical operation)**
= exponentiation (power of the value e. g.2^2
or2**2
= 4 like a square or cube)%
= modulo operator (to get remainder of given division e. g.5%2 = 1
where 1 is remainder)//
= quotient (two forward slashes which is used to get quotient of given division e. g.5//2 = 2
where 2 is the quotient)\
= backslash (use for escaping e. g."He\'s good at games."
which will appear as He’s good at games.)\n
= new lines (to print new line in a single code) e. g.


\t
= tab (this is for use tab in the code)


This are the operation which will be using in the programming where it may be some addition some conditions etc. there may be more but I know this much only. So stick with it.
Practice
Ever wondered how many seconds are there in a month (30 days)?
Write a program to calculate and output the answer.
Use the print() statement to output the result.
Try it yourself.
Practice 1
Exponentiation
Did you know that there are more bacteria cells in your body than cells that make up your body? Weird!
A bacteria culture starts with 500 bacteria and doubles in size every hour.
Which means, after 1 hour the number of bacteria is 1000, after 2 hours  2000, and so on.
Letβs calculate and output the number of bacteria that will be in the culture after 24 hours.
Try it yourself.
Practice 2
Time is ticking away (Tricky question)
Random task! You need to calculate the number of hours in 888 minutes.
Your program needs to output the number of hours and then the number of remaining minutes, on separate lines.
For example, 72 minutes are equal to 1 hour and 12 minutes, so your program would output:
1
12
Use separate print() statements for each output.
Try it yourself
Code Project
Flight Time
You need to calculate the flight time of an upcoming trip. You are flying from LA to Sydney, covering a distance of 7425 miles, the plane flies at an average speed of 550 miles an hour.
Calculate and output the total flight time in hours.
Hint
The result should be a float.
Data Types
 String = " (quotes) or " " (quotation marks) e. g. ‘Python’ or “Python!”
 Float = decimal points
.
e. g.34.546
 Int = integer value or whole number e. g.
564
 Concatenation = concatenation is used to add any 2 or more than 2 data either it may be string or float or int e. g. “hey my no. is " + 53 = hey my no. is 53


 If you use multiplication in concatenation than it will print the statement as many time as the number, you have been multiplied e. g. “a”*3 = aaa


Variables
 Variables are used to get data to predefined data which is feed into the system.
 E. g. user = Python
 result: Print(user) = Python
 Input() = It is use to collect data from user manually so that it can be used in the program to use as the data into it (its always take the data as a string no matter it’s a float or int).
 Input(“some text”) = In input you can use quote as a place holder so that you can tell the user that what kind of input are been needed to be take from user to process the data.
 int() or float() or str() = you can wrap float or int or str around input so that you can change the property of the variable according to your need.
 E. g. int(input(“Integer: “)) = Integer: 532
 E. g. float(input(“Float: “)) = 2.25
 E. g. str(input(“String: “)) = String: ABC123
 Here input can be taken multiple of time as per requirement used in the program.


Inplace operator
 Inplace operator is used to do mathematical operation so that it become easier to write the code


 Even you can use string also to add 2 string characters


Booleans & Comparators
True
orFalse
= Booleans values to show True or False The following operators give you results in Booleans that means True or False.

