###Basics:
-
Hello World Script: Create a script that simply prints "Hello, World!" to the terminal.
-
Variables and User Input:
- Create a script that asks the user for their name and then prints a greeting using that name. - Use variables to store the user's input and the greeting message.
-
Conditional Statements:
- Write a script that checks if a file exists in the current directory. If it does, print a message confirming its existence; otherwise, print an error message.
-
Loops:
- Write a script that uses a loop to print numbers from 1 to 5. - Expand it to print numbers from 1 to a number entered by the user.
### Intermediate:
-
File Operations:
- Create a script that reads a list of filenames from a text file and then prints each filename along with its file size.
-
Text Processing:
- Write a script that takes a text file as input and counts the number of occurrences of each word in the file, then prints the results sorted by frequency.