File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ #Create a variable called break and
2
+ # assign it a value 5.
3
+ # See what happens and find out the reason
4
+ # behind the behavior that you see.
5
+
6
+ number = 5
7
+ print (number )
Original file line number Diff line number Diff line change
1
+ #Create two variables.
2
+ # One to store your birth year and
3
+ # another one to store current year.
4
+ # Now calculate your age using these two variables
5
+
6
+ birth_year = 2001
7
+ current_year = 2024
8
+
9
+ age = current_year - birth_year
10
+ print (age )
Original file line number Diff line number Diff line change
1
+ #Store your first, middle and last name
2
+ # in three different variables and then
3
+ # print your full name using these variables
4
+
5
+ first_name = "Vihanga"
6
+ middle_name = "Supasan"
7
+ last_name = "Kariyakaranage"
8
+
9
+ print (first_name + " " + middle_name + " " + last_name )
You can’t perform that action at this time.
0 commit comments