Quick actions

cmd+k|ctrl+k

Navigation

Languages

Built-in Functions and Methods

Snippet info

Language

Python

Visibility

public

Author

narutouzumakiramen18

Created

2026-05-03T05:10:27.089725Z

Updated

2026-05-03T05:20:37.69588Z

# Built-in functions and methods

# functions like len,abs are called built-in functions.
# whereas a method has a dot '.' in front of it with braces to accept parameters if required.

greet = "Helllooo"
print(len(greet))

quoto = 'time and tide waits for none.'

print(quoto.upper())
print(quoto.lower())
print(quoto.capitalize())
print(quoto.find('and')) # It gives us starting index.
print(quoto.replace('and','or'))

# If i rerun the quote i will not see the changes that i did that is because
# strings are immutable we either create them or destroy them, but we cannot change them
# if we want to permenantly change them, then we need to reassign the value to the current string

print()
print(quoto)
INFO