Skip to content

Commit adfda8c

Browse files
committed
baseline
1 parent ef93859 commit adfda8c

File tree

13 files changed

+221
-1
lines changed

13 files changed

+221
-1
lines changed

UST-python-exercises.txt

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
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+
───────────────────────────────────────────────────────────────────────────────

advanced/console/calculator.py

100755100644
File mode changed.

flask/helloWorld/helloworld.py

100755100644
File mode changed.

flask/requestResponse/reqres.py

100755100644
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
# what html should be loaded as the home page when the app loads?
77
@app.route('/')
88
def home():
9-
return render_template('app_frontend.html', prediction_text="")
9+
return render_template('app_frontend.html', prediction_text="test")
10+
1011

1112
# define the logic for reading the inputs from the WEB PAGE,
1213
# running the model, and displaying the prediction

flask/requestResponse/templates/app_frontend.html

100755100644
File mode changed.

installation/Readme.txt

100755100644
File mode changed.

learncopilot.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#write me a code to calculate fibonnacci series using recursion
2+
3+
def fibonacci(n):
4+
if n <= 1:
5+
return n
6+
else:
7+
return fibonacci(n-1) + fibonacci(n-2)
8+
9+
n = int(input("Enter the number of terms: "))
10+
if n <= 0:
11+
print("Please enter a positive integer")
12+
else:
13+
print("Fibonacci sequence:")
14+
for i in range(n):
15+
print(fibonacci(i))
16+
17+
#Output
18+
#Enter the number of terms: 10
19+
#Fibonacci sequence:
20+
21+
22+
#write documentation and comments for this
23+
#code
24+
#The Fibonacci sequence is a series of numbers in which each number is the sum of the two preceding ones, usually starting with 0 and 1.
25+
#The Fibonacci sequence is defined by the recurrence relation:
26+

linkcheck.py

100755100644
File mode changed.

make-html.py

100755100644
File mode changed.

update-ends.py

100755100644
File mode changed.

update-readmes.py

100755100644
File mode changed.

ust-python-exercises/001_python.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print("Hello, World!")

0 commit comments

Comments
 (0)