You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
526 B
Python
20 lines
526 B
Python
11 months ago
|
import time
|
||
|
|
||
|
thesentence = input("Provide a sentence:\n\n")
|
||
|
if thesentence[-1] == "?" or thesentence[-1] == "!" or thesentence[-1] == ".":
|
||
|
newsentence = thesentence[:-1]
|
||
|
else:
|
||
|
newsentence = thesentence
|
||
|
partone = newsentence[0]
|
||
|
parttwo = newsentence[1:]
|
||
|
newpartone = partone.lower()
|
||
|
if newsentence[:2] == "I ":
|
||
|
thirdsentence = newsentence
|
||
|
else:
|
||
|
thirdsentence = newpartone + parttwo
|
||
|
words = thirdsentence.split()
|
||
|
print("")
|
||
|
for word in words:
|
||
|
time.sleep(0.3)
|
||
|
print("What do you mean “" + word + "”?")
|