Today we are going to talk about "DATA TYPES IN PYTHON"
Just follow the thread till the end.

#pythonprogramming #pythonlearning #SSOT #python
What is data type in python programming?

In python programming, a data type is an attribute of data which tells the compiler or interpreter how the programmer intends to use the data.
In python programming, data type is an important concept.

Variables can store data of different types, and different types can do different things.

Python has the following data types built-in by default, in these categories:
Text Type: str
Numeric Types:int, float, complex
Sequence Types:list, tuple, range
Mapping Type:dict
Set Types: set, frozenset
Boolean Type:bool
Binary Types:bytes, bytearray, memoryview
Getting the Data Type
You can get the data type of any object by using the type() function:
Example
Print the data type of the variable x: Image
Setting the Data Type
In Python, the data type is set when you assign a value to a variable: Image
Python Numbers
There are three numeric types in Python:

1.int
2.float
3.complex

Variables of numeric types are created when you assign a value to them: Image
Int
Int, or integer, is a whole number, positive or negative, without decimals, of unlimited length.
Float
Float, or "floating point number" is a number, positive or negative, containing one or more decimals.
Complex
Complex numbers are written with a "j" as the imaginary part:

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with South Sudan IT community 🇸🇸

South Sudan IT community 🇸🇸 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @SsdIct

1 Oct
Our topic of today is a "PRINT FUNCTION" in python.

#SSOT #PYTHON #pythonlearning #Python #pythonprogramming #CyberSecurity #softwaredevelopment
In Python, the command print tells the program to display words or numbers on the screen. Here's a line of code that tells Python to display the words “Hello, World!”

print("Hello, World!")
print is a keyword—that is, a word that has special meaning for Python. It means, "Display what’s inside the parentheses." Note that print isn't capitalized. If you capitalize it, the program won’t run.
Read 9 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(