Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''
- 7. Prepare a string from task 1.1 of “Conditions” from input values.
- Print the result string. Make this string in all ways defined in presentation.
- 1.1. Add entering age. Value should be converted to float and printed out.
- Example:
- Enter name: Alex
- Enter surname: Sokolov
- Age: 28
- Hello, Alex Sokolov, age 28!
- '''
- name=input("Enter your first name:")
- surname=input("Enter your surname:")
- age=float(input("Enter your age:"))
- print("Hello, %s %s, age %d" % (name, surname, age))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement