10THWorksheet(ProgrammingFundamentals)_edited
10THWorksheet(ProgrammingFundamentals)_edited
All the exercises have to be done in Code HS, share the links through Phidias in a message.
1. The Print function allows you to visualize data and information on screen, the syntax that you
have to use is the describe below:
Clue: Inside the parenthesis you need to specify what is the information that you want to print,
consider that depending on data type, the syntax change:
Numbers or operations:
Letters or characters
Exercise #1
Create a program where you are going to print personal data, considering the next
information:
Name
Last Name
Nickname
ID number:
Telephone Number:
Age:
Look at the example below about the way the exercise result must be:
2. The arithmetic operators allow you to perform calculations between quantities declared.
print("This program will ask
You have to keep in mind the basic operators contained in the next table
Addition
Name
you for your personal Syntax Operation
𝐴+𝐵
Subtraction
information and create a chart 𝐴−𝐵
It performs a comparison between two values. It returns a Boolean True or False depending upon
the result of the comparison.
Example
Exercise # 3
Create a program that reads 2 numbers by keyboard and determines the following aspects (it is
enough to display True or False):
Exercise #4