Init to comit it. Messy and in need of PR!

This commit is contained in:
Joe S
2021-01-08 20:28:11 -05:00
commit 224966a158
8 changed files with 77 additions and 0 deletions

19
1/23/main.py Normal file
View File

@@ -0,0 +1,19 @@
user_int = 0
while user_int not in range(32, 126):
user_int = int(input('Enter integer (32 - 126):\n'))
user_float = float(input('Enter float:\n'))
user_char = ''
while len(user_char) != 1:
user_char = str(input('Enter character:\n'))
user_string = str(input('Enter string:\n'))
results = [user_int, user_float, user_char, user_string]
print(*results)
results.reverse()
print(*results)
print('{0} converted to a character is {1}'.format(user_int, chr(user_int)))