add tasks 31-39

This commit is contained in:
Uthman Fatih 2026-08-31 14:34:15 +01:00
parent 7c6b44f414
commit bad7599442
12 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,4 @@
number = 1
while number < 13:
print("[{0} squared = {1}".format(number, number * number))
number += 1

View File

@ -0,0 +1,15 @@
def writeFile():
"""write data to a file"""
try:
myFile = open('new_file.txt', 'w')
myFile.write("Little Bo Peep has lost her sheep")
myFile.write("\n")
myFile.write("And doesn't know where to find them.")
myFile.write("\n")
myFile.close()
except FileNotFoundError:
print("Error: The file could not be created.")
except IOError:
print("Error: There was an issue writing to the file.")
finally:
print("File operation completed.")

BIN
31 Error Handling/task.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

BIN
32 Databases/task.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
33 Primary Keys/task.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
34 Data Types/task.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
35 QBE Grids/task.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB