Skip to content

Commit 7aa0b08

Browse files
committed
Format code
1 parent 8b0b6eb commit 7aa0b08

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

app.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
#a simple Python app
2-
print('This is a simple Python app.')#print simple text
3-
input_text = input('Enter text: ')#prompt text for input
4-
print(input_text)#print variable to entered text input
5-
print('Length: ', len(input_text))#print length of entered text
6-
print('Uppercase output: ', input_text.upper())#print text in uppercase
7-
print('Lowercase output: ', input_text.lower())#print text in lowercase
8-
print('Titlecase output: ', input_text.title())#print text in titlecase
9-
print('Capitalized output: ', input_text.capitalize())#print text in capitalized (first letter only)
10-
print('Reversed output: ', input_text[::-1])#print text in reverse
1+
# a simple Python app
2+
print("This is a simple Python app.") # print simple text
3+
input_text = input("Enter text: ") # prompt text for input
4+
print(input_text) # print variable to entered text input
5+
print("Length: ", len(input_text)) # print length of entered text
6+
print("Uppercase output: ", input_text.upper()) # print text in uppercase
7+
print("Lowercase output: ", input_text.lower()) # print text in lowercase
8+
print("Titlecase output: ", input_text.title()) # print text in titlecase
9+
print(
10+
"Capitalized output: ", input_text.capitalize()
11+
) # print text in capitalized (first letter only)
12+
print("Reversed output: ", input_text[::-1]) # print text in reverse

0 commit comments

Comments
 (0)