Python 3, data type

 #data type

#string
text = 'apple'
#integer
number = 10
#decimal
d = 10.5
d1 = -10.5
#boolean
b = True #dg T besar
b1 = False
#tuple
coordinates = (2.5, 1.5)
#list
names = ['febri', 'rian', 'febrian']
#set
unique = {1,2,3,4,4,5,6}
#jika ada duplicate di set unique, duplicate akan hilang
print(unique)
#dictionary
users = {'BOb': 1, 'James':2}

0 Response to "Python 3, data type"

Posting Komentar