-
Notifications
You must be signed in to change notification settings - Fork 0
/
name.py
24 lines (16 loc) · 584 Bytes
/
name.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name = "paul atreides"
print(name.title())
first_name = "duncan"
last_name = "idaho"
full_name = first_name + " " + last_name
print(full_name.title())
message = "This is your message"
message2 = "This is your message on TAB"
print(message)
#the \t represents a tab, this will adds a tabs worth of whitespace into this message.
print("\t" + message2)
favoritePlanet = "Arrakis. "
print("Hello, my favorite planet in the Dune universe is " + favoritePlanet)
#The rstrip function removes whitespace from the variable
favoritePlanet = favoritePlanet.rstrip()
print(favoritePlanet)