Python Strings Assignment1
Python Strings Assignment1
1. Create a variable full_name with your full name (first and last name). Then write code
to:
o Print your name in all uppercase letters
o Print your name in all lowercase letters
o Print your name with the first letter of each name capitalized
2. Create a variable messy_text = " Python programming is fun! " Then write code
to:
o Remove all the extra spaces at the beginning and end
o Replace "fun" with "amazing"
o Count how many times the letter 'i' appears
3. Create a variable sentence = "The quick brown fox jumps over the lazy dog"
Then write code to:
o Split this sentence into a list of words
o Join the words back together with dashes between them
o Check if the sentence starts with "The"
o Find the position of the word "fox"
Part 3: F-Strings
1. Asks for user input about their first name, last name, and birth year
2. Uses string methods to properly capitalize their name
3. Uses f-strings to create a profile message: "Profile: {First Last}, Age: {calculated age},
Username: {first initial + last name + birth year}"