Write python code ?
correct code bcz before i got it was not running properly
Write a function that reads all words from a file (.txt) (space separation) and returna list in these words.def count_words(fileName: str) -> [str]:Test Data: count_words("demofile.txt")Expected Output: ['Hello', 'Welcome', 'to', … , 'Luck!']
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here