-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
12 lines (12 loc) · 671 Bytes
/
app.py
File metadata and controls
12 lines (12 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
# a simple Python app
print("This is a simple Python app.") # print simple text
input_text = input("Enter text: ") # prompt text for input
print(input_text) # print variable to entered text input
print("Length: ", len(input_text)) # print length of entered text
print("Uppercase output: ", input_text.upper()) # print text in uppercase
print("Lowercase output: ", input_text.lower()) # print text in lowercase
print("Titlecase output: ", input_text.title()) # print text in titlecase
print(
"Capitalized output: ", input_text.capitalize()
) # print text in capitalized (first letter only)
print("Reversed output: ", input_text[::-1]) # print text in reverse