What are the common built-in data types in Python?

The common built-in data types in python are:

Numbers

They include integers, floating-point numbers, and complex numbers. e.g., 1, 2.4, 3 + 4j

List

An ordered sequences of items is called a list. The elements of a list belong to different data types. Eg. [5, ‘player’, 4.7].

Tuple

It is also an ordered sequence of elements. Unlike list, tuples are immutable, which means they can’t be changed. e.g. (3, ‘play’, 1).

Popular Posts

Author

  • Naveen Pandey Data Scientist Machine Learning Engineer

    Naveen Pandey has more than 2 years of experience in data science and machine learning. He is an experienced Machine Learning Engineer with a strong background in data analysis, natural language processing, and machine learning. Holding a Bachelor of Science in Information Technology from Sikkim Manipal University, he excels in leveraging cutting-edge technologies such as Large Language Models (LLMs), TensorFlow, PyTorch, and Hugging Face to develop innovative solutions.

    View all posts
Spread the knowledge
 
  

Join the Discussion

Your email will remain private. Fields with * are required.