Skip to content

Commit c143a71

Browse files
Excersie 2.3 : change the content of data variable and assign new data to it
1 parent c52de68 commit c143a71

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# 8. [BIA] Exercise 2.3 How to Change the Content or Type of a Variable
2+
"""
3+
Isuzu is older than Ford , Isuzu 1920.00 Ford 1935
4+
Step 01 : Create a variable called Isuzus_lunch_date as string type
5+
Step 02 : Assign the lunch date to 1920.5
6+
Step 03 : Print the lunch date.
7+
Step 04 : Change the lunch date form string to float .
8+
Step 05 : Print the new Lunch date .
9+
10+
"""
11+
# Let's Code . . .
12+
Isuzu_lunch_date = str(1920.5)
13+
print(Isuzu_lunch_date)
14+
Isuzu_lunch_date = float(Isuzu_lunch_date)
15+
print(Isuzu_lunch_date)
16+
print(type(Isuzu_lunch_date))
17+
print(Isuzu_lunch_date + 0020.20)
18+
print(Isuzu_lunch_date)
19+

0 commit comments

Comments
 (0)