We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34cdeac commit d578ee1Copy full SHA for d578ee1
name_display.py
@@ -0,0 +1,13 @@
1
+# Starting Out with Python (4th Edition).
2
+# Tony Gaddis.
3
+# Page 456.
4
+# Q. 1 Name Display.
5
+
6
+name = str(input("Enter Name: "))
7
+name = name.split(" ")
8
+first_name = name[0]
9
+last_name = name[1]
10
+address_name = str(first_name[0].upper() + '.' + last_name[0].upper() + '.')
11
+username = str(first_name[0].lower() + last_name.lower())
12
+print("Name in Address Book: ", address_name)
13
+print("Username: ", username)
0 commit comments