#Data annotation (anotasi data) adalah proses memberikan label, f string
# data annotation
age : int = 10
first_name : str = 'Bob'
print ('Name: '+first_name+' Age: '+str(age))
#f string
# Bisa pakai '', atau doble quote
print (f'name:{first_name}, Age:{age}')
0 Response to "Python 5, Data annotation var label, f string"
Posting Komentar