Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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}")
Source by github.com #
 
PREVIOUS NEXT
Tagged: #find #min #character
ADD COMMENT
Topic
Name
3+5 =