find max, min character
t = input("your text>>")
min_char = t[0]
max_char = t[0]
for item in t:
if item<min_char:
min_char = item
if item>max_char:
max_char = item
print(f"min_char: {min_char}")
print(f"max_char: {max_char}")
find max, min character
t = input("your text>>")
min_char = t[0]
max_char = t[0]
for item in t:
if item<min_char:
min_char = item
if item>max_char:
max_char = item
print(f"min_char: {min_char}")
print(f"max_char: {max_char}")
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us