How To Take List As Input In Python Is Not Working