Commonly Used Python Functions

Variable

x = “Welcome to my Article”

len()

len(x)

print()

print(“Python is fun”)

lower()

x = “Welcome to my Article”x.lower()

upper()

x = “Welcome to my Article”x.upper()

split()

x = “Welcome to my Article”x.split(‘ ’)

join()

x= ['Welcome', 'to', 'my', 'Article']

strip()

y = “ here we go ”y.split()

Python Functions for Numerical Data

abs(-9/2)
max('cat', 'ball', 'apple', 'mango')
max(9,101,2)
min('cat', 'ball', 'apple', 'mango')
min(9,101,2)

--

--

--

Man on a Mission - to create epochal impact

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to increase software development velocity and reduce time to market?

Computer Vision

Connecting instance from Windows using PuTTY.

Responsive Design: The Dark Mode

Why a Research Internship Might Be Perfect for You

Steps to setup Corda Performance Test Suite

Implementing your own operating system — part9

The No Code Movement

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ojash Shrestha

Ojash Shrestha

Man on a Mission - to create epochal impact

More from Medium

A quick method to cross-cluster data copying with a Python script

NumPy Array vs List Comparison in Python

Python Fundamental — Beginer to Advance Part-4 Loops

Python subclassing and dependency inversion without violating Liskov substitution