100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Lecture notes

Programming

Rating
-
Sold
-
Pages
4
Uploaded on
27-07-2022
Written in
2020/2021

This lecture notes serves as a tutorial with regards to programming.









Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
July 27, 2022
Number of pages
4
Written in
2020/2021
Type
Lecture notes
Professor(s)
Mr. chester
Contains
All classes

Subjects

Content preview

Python Tutorial

Python Data Types
Built-in Data Types
In 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:
£7.49
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
melanietesipao

Get to know the seller

Seller avatar
melanietesipao Reaseheath College
View profile
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
3 year
Number of followers
0
Documents
6
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions