Professional Documents
Culture Documents
#print('0----')
#print(' ||||')
#print('*' * 10) #this is called an expression
#price = 10
#price = 20
#rating = 4.9
#name="Mom"
#published = True
#print(price)
#Course = "The double quotes can be used to use single quotes as a text. E.g,
it's an example and vice versa"
#Course2 = 'We can use double quotes as a text in between the single ones
"like this" it is counted as a text'
#Course3 = '''Also use three single quotes for multiple line strings
#Hello Zahra,
#This is an example for three single quotes used for multiple line strings.
#Hope you understand it.
#Regards,
#Hussainzada'''
#print(Course)
#print(Course2)
#print(Course3)
#Arithmetic Operations
#print(10*3) #zarb
#print(10/3) #taqsim
#print(10+4)#jam
#print(10//3)#baqimanda
#print(10**3)#ba tawana
#x=10
#x=x+3
#x+=3#augmented assign operator the same like x=x+3 you can use - or * instead
of + the same way
#print(x)
#print(10+3*2)#operator precedent
#x=2.5
#y=-2.8
#print(round(x))
#print(abs(y))
#import math
#can be used to import all math libraries and use it in python
#also we can search on google 'python 3 math module'
#if statements
#weather= True
#if weather:
# print("It is a hot day")
# print("Don't forget sunscreen")
#else:
# print("Lucky you it is a cold day")
# print("Wear warm clothes")
#print("Have a nice day")
#is_hot= False
#is_cold= True
#if is_hot:
# print("It is a hot day")
# print("Don't forget sunscreen")
#elif is_cold:
# print("Wear warm clothes")
#else:
# print("Such a nice weather")
#print("Enjoy your day")
#house_price= 1000000
#good_credit=False
#bad_credit= False
#if good_credit:
# calculation= (int(house_price) * 10)/100
# print('you have put down 10% which equals to', int(calculation))
#elif bad_credit:
# calculate=(int(house_price) * 20)/10
# print("You have to put down 20% which equals to: ", int(calculate))
#else:
# print("Seems like It doesn't work")
# print("Sorry, better luck next time")
#print("see you")
#temperature= 50
#if temperature>27:
# print("It is a hot day today!")
#elif temperature<=20:
# print("Isn't it a bit cold?")
#elif temperature==50:
# print("It is burning everyone down!")
#elif temperature!=50: #not equal\
# print("It is good it is not that high!")
#else:
# print("It is such a nice weather!")
#print("Enjoy your day")