PROGRAM NO 1:
print ("\"Ali How are you\"")
#Ali you like my program or not?
print("What are you doing")
print("\"Pakistan\" and \"India \" match will be very osm\nHope for the best")
print("pakistan will won the match,\"INSHA ALLAH\"", sep="*")
""" It was the last night of the year"""
print(2*5)
print("\"Ali\"","\"hassan\"","\"Umair\"",sep="\n-*-")
PROGRAM NO 2
print("NAME=\"Hassan Raza\"")
print("REG NO=\"22-ME-79\"")
print("I am doing very \"important course\".\nThe course is very helpul for future life. ")
print("Your Time is \"100\"days\n \"\"\"Best of Luck\"\"\"\n")
print("Ali","Hassan", 5,6,7,8,9,"Baqir", sep="-*-*-*-*-*")
print("A","B", 3,4,5,6,"C","D" ,7,8,9,10, sep=" # @@ # ")
a=50
print(a)
a="Ali"
print(a)
print(5-3)
print("The formula to find is")
print("Ok" ,end=" and ")
print("Bye")
PROGRAM NO #3
#MY FIRST CALCULATOR
print("\"\"\"BASIC CALULATOR:\"\"\"")
print("Made", "by","Hassan",sep="-----")
print("CASE 1: Addition")
a=input("\"Enter your first number\"=" )
b=input("\"Enter your second number\"=")
print("Sum of your two number is =",int(a)+int(b))
print("CASE 2: Subtraction")
c=input("\"Enter your first number\"=" )
d=input("\"Enter your second number\"=")
print("subtraction of two number is",int(c)-int(d))
print("CASE 3: Multiplication")
e=input("\"Enter your first number\"=" )
f=input("\"Enter your second number\"=")
print("Product of your two number is =",int(e)*int(f))
print("CASE 4: Division")
g=input("\"Enter your first number\"=" )
h=input("\"Enter your second number\"=")
print("Division of your two number is =",int(e)//int(f))
print("\"\"\"\"THANK YOU FOR USING MY CALCULATOR\"\"\"\"")
Program NO 4
# print("Enter the value to find power of it= ")
print("\"\"\"POWER CALCULATOR\"\"\"")
a=input("Your number is =", )
b=input("Number power = ", )
print("The power of your number is =",int(a)**int(b))
print("\"\"\"AVERAGE CALCULATOR FOR ALI\"\"\"")
print("To find average of two number plz provide some data as mentioned:")
a=input("Enter the first number :", )
b=input("Enter the second number :", )
print("The average of two numbers is:",int(a)+int(b)/2)
print("Thank You ALI for using ,Let continue")
print("\"\"\"NO OF ALPHABET CALCULATOR\"\"\"")
print("Enter your word Ali and press Enter:")
a=input()
print("The no of alphabets in your written name ALi are:",len(a))
print("\"\"\"SEPERATOR TOOL\"\"\"")
print("Ali Enter the no of words and tell me the seperator you want to use bw them")
a=input(" Your First letter =", )
b=input("Your Second Letter=",)
c=input("Your Third Letter=",)
d=input("Your Fourth Letter=",)
e=input("ALI Tell me the Seperator you want to use between them:", )
print("Here is what you want ",str(a),str(b),str(c),str(d),sep=str(e))
print("\"\"\"\"\"THANK YOU GENTELMAN YOU CAN USE ME AGAIN\"\"\"\"\"")
program NO 4
name="Hassan"
print("Hello",name)
Ali='''IT WAS THE LAST
NIGHT OF THE YEAR
IT HAS SNOWED
AND N THE DARK WALKED
THERE WAS A POOR LITTLE GIRl'''
print(Ali)
for character in name:
print(character)
a="HASSAN"
b='''aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'''
for character in b:
print(character)
fruit="MAngo"
print(len(fruit))
print(fruit[0:2])
nm="HArry"
print(nm[-4:-2])
#5-4=1....01..1-A..........5-2=3 but we igonore no on 3 0123 harr so r ignored so ans is ar
Program no 5
a="Ali"
print(a)
print(a[0])
print(a[0:2])
print(len(a))
for character in a:
print(character)
b='''Hassan
is
19
years
old'''
print(b)
a=input("NO", )
print(a)