You've learned strings, len(), and type conversion. Time to put it all together.
A user has just created an account on a website. Your job is to build a welcome message using their details.
Your tasks
Given these starting values:
username = "alice123"
age = 28
balance = 150.50
1. Store the length of username in username_length
2. Build a welcome message in this exact format and store it in message:
Welcome, alice123! You are 28 years old and your balance is 150.5.
3. Print message
4. Print username_length
Expected output
Welcome, alice123! You are 28 years old and your balance is 150.5.
8
Constraints
- Use
str() to convert numbers to strings
- Use
len() to measure the username
- No external libraries