0% found this document useful (0 votes)
4 views

Lab Activity 4

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Lab Activity 4

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Name: Score:

Course & Section: Name: Score:

Course & Section:

Laboratory Activity # 4

Laboraory Activity # 4

Problem 1: Sum of Two Numbers Problem 1: Sum of Two Numbers

Write a program that asks the user for two numbers and prints their sum, Write a program that asks the user for two numbers and prints their sum,
difference, quotient and product. difference, quotient and product.

Problem 2: Reveal the Hidden Message Problem 2: Reveal the Hidden Message

Write a program that extracts the hidden message from the string below using Write a program that extracts the hidden message from the string below
slicing. using slicing.

ajdydbckcongratulations!jasakdhsdk ajdydbckcongratulations!jasakdhsdk

Problem: String Manipulation Problem: String Manipulation

Write a Python program that takes the string “aasa ako this term!” and Write a Python program that takes the string “aasa ako this term!” and
performs the following: performs the following:

 Prints the text in uppercase.  Prints the text in uppercase.


 Prints the text in lowercase.  Prints the text in lowercase.
 Replace the word “aasa” with “papasa”  Replace the word “aasa” with “papasa”

You might also like