ENGG1003 Lab08 PythonBasics 2425T2
ENGG1003 Lab08 PythonBasics 2425T2
Notes:
No input validation is required for any of the tasks in this
lab exercise.
No matter whether the surname is entered in uppercase or
lowercase letters, it should be printed with the first letter
capitalized and the rest in lowercase.
Hints: Use str.title() to print the surname
Task 1 – Sample Outputs
M < 3?
Yes No
V<
M > 5?
150?
Yes No Yes No
V< V<
Salted 150? 150?
Monkey
Fish
🐟 🐒 Yes No Yes No
Weak Healthy
Pig Elephant
Human Human
🐖 🐘 😪 😃
Task 3 – Example Codes
No Yes
Keep
Foods?
working
hard then.
Yes No
Fresh? Take a
good rest.
Yes No
Don’t eat
Eat it!
it!
Bonus Task 4 – What if you
are hungry?
Sample Output 4.1 Sample Output 4.2