ANG IYONG KAPALARAN sa 2030 PROGRAM
Create a list with following items:
(Pwede mong dagdagan ang items)
Then the program should ask for your name and birth year and compute your age. The program should display the randomly picked item on list.
Note: Do not use random.choice() function
Sample output:
Enter your name: Carlo
Enter your Birth Year: 1999
Carlo, Ang iyong edad ay 31 at Ikaw ay Sinungaling parin sa 2030
import random
items=["Maganda","Pogi","Cute","Panget","Sexy","Payat","Mataba","Walang Jowa",
"In a Relationship","Married","Umaasa sa Ayuda","Rich kid","Successful","Sinungaling parin"]
name=input("Enter your name: ")
birthYear=int(input("Enter your Birth Year: "))
randomItem=items[random.randint(0, len(items)-1)]
age=2030-birthYear
print(f"{name}, Ang iyong edad ay {age} at Ikaw ay {randomItem} sa 2030")
Comments
Leave a comment