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