Upload files to "basic programming/1st task"
This commit is contained in:
11
basic programming/1st task/5.py
Normal file
11
basic programming/1st task/5.py
Normal 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)}")
|
||||
Reference in New Issue
Block a user