0% found this document useful (0 votes)
17 views

Programming Essential Python Functions

Uploaded by

IDK
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Programming Essential Python Functions

Uploaded by

IDK
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Programming: Essential Python Functions

Programming: Essential Python Functions

1. Input and Output:

- input(): Accepts user input.

- print(): Displays output.

2. Mathematical Operations:

- abs(x): Absolute value.

- pow(x, y): x^y.

3. List Operations:

- len(lst): Returns the number of elements.

- lst.append(x): Adds x to the list.

4. String Operations:

- str.upper(): Converts to uppercase.

- str.split(): Splits a string into a list.

Tip:

Experiment with these functions in Python to understand their behavior.

You might also like