Python 7 Levels, L1, Unit 5, Data Types

Powered By EmbedPress

Exercise 1:

name = "Jack"
age  =  10
height = 1.53
n = type(name)
a = type(age)
h = type(height)
print(n)
print(a)
print(h)

Homework 1:

a = "123456"
b = "45678"
c = a + b
print(c)

Homework 2:

a = "123456"
b = "45678"
c = int(a) + int(b)
print(c)

dahan1999

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts