repl.it
@ismenelik/

test_StringMethods

Python

No description

fork
loading
Files
  • main.py
main.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
25
quote = "Together we can change the world,\n just one random act of kindness at a time."
print(quote)
print()

run_me = ""

while run_me != "q":

  my_choice = input("Choose between: u, l, t, r\n")
  if my_choice == "u":
    print(quote.upper())
    print()
  elif my_choice == "l":
    print(quote.lower())
    print()
  elif my_choice == "t":
    print(quote.title())
    print()
  elif my_choice == "r":
    print(quote.replace("world","moon"))
    print()
  else:
    break

print("\n Goodbye!!")
?