Upload files to "basic programming/1st task"

This commit is contained in:
2024-11-23 15:48:27 +02:00
commit b4ef6ebbac
5 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
# Q5
# Get values from user
first_name = input("Enter first name: ")
last_name = input("Enter surname: ")
id_number = int(input("Enter ID Number: "))
mat_average = float(input("Enter matriculation exams average: "))
# Print values and types
for variable in [first_name, last_name, id_number, mat_average]:
print(f"{variable} - {type(variable)}")