Hi, im newish to python and have been stuck on this coding for a few days
I have managed to code so I take input from user of a string which I then list the string depending on how many strings are entered after a space
so if the input was "hello jacob"
my code would output
hello
jacob
now I wish to add to the code to allow me to calculate the longest and shortest strings that is input by the user.
---------------------------------
my code for the first task is:
m = input("Enter a string ")
____i = 0
____m=m+" "
____while m==" ": i=i+1
____while i<len(m)-1 :
________word = ""
________while m==" ": i=i+1
________while m != " " :
____________word = word + m
____________i=i+1
________print(word)
If anybody could offer abit of advice I'd be grateful.
Thanks.