I'm brand new to coding and I'm trying to get my code to work in the command line so that when I type python3 filename.py The World is big - it returns the the first smallest word on the next lines.
I know that I'm over-thinking this but I really need a dummies version of how to know where to put the sys.argv to make this work. I'll put a very simple code that I have tried different ways and just don't know where to put it. I have to enter the string on the line before it gives me the answer.
import sys
text = input("")
short = min(text.split(), key=len)
print("Shortest word is: ", short)