|
| 1 | +"Install the latest version of Python and verify the installation. |
| 2 | + |
| 3 | +─────────────────────────────────────────────────────────────────────────────── |
| 4 | + |
| 5 | +─────────────────────────────────────────────────────────────────────────────── |
| 6 | +─────────────────────────────────────────────────────────────────────────────── |
| 7 | + |
| 8 | +Write a simple Python script that prints ""Hello, World!"" to the console. |
| 9 | +─────────────────────────────────────────────────────────────────────────────── |
| 10 | +D:\PraiseTheLord\HSBGInfotech\Others\vilas\Learn-PowerShell-Code-Examples\PowerShell\scripts |
| 11 | +─────────────────────────────────────────────────────────────────────────────── |
| 12 | +─────────────────────────────────────────────────────────────────────────────── |
| 13 | + |
| 14 | +Create a script to perform basic arithmetic operations (addition, subtraction, etc.). |
| 15 | +─────────────────────────────────────────────────────────────────────────────── |
| 16 | + |
| 17 | +─────────────────────────────────────────────────────────────────────────────── |
| 18 | +─────────────────────────────────────────────────────────────────────────────── |
| 19 | + |
| 20 | +Write a program that uses conditional statements to check if a number is positive or negative. |
| 21 | +─────────────────────────────────────────────────────────────────────────────── |
| 22 | + |
| 23 | +─────────────────────────────────────────────────────────────────────────────── |
| 24 | +─────────────────────────────────────────────────────────────────────────────── |
| 25 | + |
| 26 | +Define a function that takes a list and returns its sum. |
| 27 | +─────────────────────────────────────────────────────────────────────────────── |
| 28 | + |
| 29 | +─────────────────────────────────────────────────────────────────────────────── |
| 30 | +─────────────────────────────────────────────────────────────────────────────── |
| 31 | + |
| 32 | +Create a for loop that prints numbers 1 to 10. |
| 33 | +─────────────────────────────────────────────────────────────────────────────── |
| 34 | + |
| 35 | +─────────────────────────────────────────────────────────────────────────────── |
| 36 | +─────────────────────────────────────────────────────────────────────────────── |
| 37 | + |
| 38 | +Use Jupyter Notebooks to document a Python project with explanations. |
| 39 | +─────────────────────────────────────────────────────────────────────────────── |
| 40 | + |
| 41 | +─────────────────────────────────────────────────────────────────────────────── |
| 42 | +─────────────────────────────────────────────────────────────────────────────── |
| 43 | + |
| 44 | +Implement error handling using try/except blocks." |
| 45 | +─────────────────────────────────────────────────────────────────────────────── |
| 46 | + |
| 47 | +─────────────────────────────────────────────────────────────────────────────── |
| 48 | +─────────────────────────────────────────────────────────────────────────────── |
| 49 | + |
| 50 | +"Write a script to automate file creation and deletion in a specified directory. |
| 51 | +─────────────────────────────────────────────────────────────────────────────── |
| 52 | + |
| 53 | +─────────────────────────────────────────────────────────────────────────────── |
| 54 | +─────────────────────────────────────────────────────────────────────────────── |
| 55 | + |
| 56 | +Use the os module to list all files in a directory and display their sizes. |
| 57 | +─────────────────────────────────────────────────────────────────────────────── |
| 58 | + |
| 59 | +─────────────────────────────────────────────────────────────────────────────── |
| 60 | +─────────────────────────────────────────────────────────────────────────────── |
| 61 | + |
| 62 | +Implement a regular expression to search for email addresses in a text file. |
| 63 | + |
| 64 | +─────────────────────────────────────────────────────────────────────────────── |
| 65 | + |
| 66 | +─────────────────────────────────────────────────────────────────────────────── |
| 67 | +─────────────────────────────────────────────────────────────────────────────── |
| 68 | +Create a program that reads a large CSV file and processes its data. |
| 69 | +─────────────────────────────────────────────────────────────────────────────── |
| 70 | + |
| 71 | +─────────────────────────────────────────────────────────────────────────────── |
| 72 | +─────────────────────────────────────────────────────────────────────────────── |
| 73 | + |
| 74 | +Write a hashing script using the hashlib library to secure passwords. |
| 75 | +─────────────────────────────────────────────────────────────────────────────── |
| 76 | + |
| 77 | +─────────────────────────────────────────────────────────────────────────────── |
| 78 | +─────────────────────────────────────────────────────────────────────────────── |
| 79 | + |
| 80 | +Create a virtual environment, install a package, and save dependencies to requirements.txt. |
| 81 | +─────────────────────────────────────────────────────────────────────────────── |
| 82 | + |
| 83 | +─────────────────────────────────────────────────────────────────────────────── |
| 84 | +─────────────────────────────────────────────────────────────────────────────── |
| 85 | + |
| 86 | +Implement unit tests for a sample function using the unittest framework. |
| 87 | +─────────────────────────────────────────────────────────────────────────────── |
| 88 | + |
| 89 | +─────────────────────────────────────────────────────────────────────────────── |
| 90 | +─────────────────────────────────────────────────────────────────────────────── |
| 91 | + |
| 92 | +Mock a function in a unit test to simulate behavior without executing the actual code." |
| 93 | +─────────────────────────────────────────────────────────────────────────────── |
| 94 | + |
| 95 | +─────────────────────────────────────────────────────────────────────────────── |
| 96 | +─────────────────────────────────────────────────────────────────────────────── |
0 commit comments