Python Tuples and Tuple Methods

Initialize a Tuple

# Way 1
emptyTuple = ()
# Way 2
emptyTuple = tuple()

--

--

--

Data Scientist https://www.linkedin.com/in/michaelgalarnyk/

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

Recommended from Medium

4 Benefits of CI/CD

How to avoid a Deadlock while writing Concurrent Programs — Java Example

How to avoid deadlock in Java?

Introduction to VANTA’s API and SDK Services

My Ruby on Rails Recipe

How I used GitHub Actions to automate (some) of my deployment

Practical Tips for Dask, vol3: Limited-fan Repartitions

Budget CPUs for machine learning -2021/2022 (Xeons)

The fastest production-ready image resize out there, part 1: general optimizations

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
Michael Galarnyk

Michael Galarnyk

Data Scientist https://www.linkedin.com/in/michaelgalarnyk/

More from Medium

Comprehensions in python: What are list, dict, and set comprehensions?

A picture of programming text on a computer

Merge and Split Data to Solve an Everyday Distribution Problem

Learning Python Programming: Language Fundamentals-I

Python — Global variables and Local variables