Quick actions

cmd+k|ctrl+k

Navigation

Languages

BUILT IN FUNCTIONS AND METHODS 

Snippet info

Language

Python

Visibility

public

Author

sermon0906

Created

2026-06-24T12:59:32.638634Z

Updated

2026-06-24T13:07:56.42236Z

print('my name is sermon')
print(type("sermon"))
print(type(6.5))
print(type(str(int(64)))) #type conversion 
print(bin(5)) #prints the binary value of that number 
#print('sermon' + 5) THIS IS STRING CONCATENATION 
print(round(5.6))
print(abs(-100))
print(len('semron sharma'))
#method are similar to functions but they are for a particular data type 
#methods have a special syntax that is they start with a . like .format
print('my name is {} and i am {} years old'.format('sermon','20')) #this is .format method used in pyhton 2 in pyhton 3 f is used 
INFO