Skip to content

Conversation

Egbe34
Copy link

@Egbe34 Egbe34 commented Jul 18, 2025

This submission includes solutions for the following Python exercises focused on data types, input handling, and string operations.

Exercise 1: Calculate Remaining Salary

  • Collected user input: name, age, address, salary, and expenses
  • Performed type casting for numerical inputs
  • Calculated remaining salary and checked if it's above $500
  • Used boolean logic and string formatting for final output

Exercise 2: Text Cleaning and Concatenation

  • Removed punctuation from a given poem string
  • Converted text to lowercase and concatenated with "python is awesome!"
  • Printed the length of the final string
  • Split the string into a list using the space delimiter

Concepts applied:

  • input(), int(), float(), round(), bool
  • str.translate(), str.lower(), str.split(), len()
  • Method chaining and formatted string output

Ready for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant