first_name = "Zephyr" print(f"Hello {first_name}.") food = "Shawarma" print(f"I like {food}.") email = "classified" print(f"My email is {email}.\n")
age = 27 items = 15 num_of_people = 200
print(f"I am {age} years old.") print(f"I need to bring {items} items tomorrow.") print(f"There's around {num_of_people} here.\n")
CGPA = 3.33 price = 12.90 weight = 64.1
print(f"My diploma CGPA is {CGPA}.") print(f"Eggs price nowadays are {price}.") print(f"My weight is {weight}.\n")
cybersec_exp = True
if cybersec_exp: print("You are a legendary hacker.") else: print("Go harder!!!.")
bec_rich = False
if bec_rich: print("I am getting there.") else: print("Keep going!!!.")
I_L_whatido = False
if I_L_whatido: print("I will make it.\n") else: print("I will still make it!!!.\n")
################################################################################### ################################################################################### ###################################################################################
name = "Zephyr" age = 27 CGPA = 3.33 a_hacker = True
print(type(name)) print(type(age)) print(type(CGPA)) print(type(a_hacker))
age = str(age) print(age) print(type(age))
age = float(age) print(age) print(type(age))
CGPA = int(CGPA) print(CGPA) print(type(CGPA))
a_hacker = str(a_hacker) print(a_hacker) print(type(a_hacker))
name = bool(name) print(name) print(type(name))
################################################################################### ################################################################################### ###################################################################################
name = input("What is your name?: ") age = int(input("How old are you?: "))
age += 1
print(f"Hola {name}!") print ("SANNAH HELWAH!!!") print(f"You are {age} years old.")
length = float(input ("Enter the length: ")) width = float(input ("Enter the width: ")) area = length * width
print(f"The area is: {round(area, 2)}cm.")
item = input("What is your item?: ") price = float(input("Enter the price: ")) quantity = int(input("Enter the quantity: ")) total = price * quantity
print(f"You have bought {quantity} x {item}") print(f"The total is: RM{round(total, 2)}")