Sign In for Full Access

Quick access through the institutional single sign-on Manchester Met Sign In
Skip this for now
|
Public Access Here

Sign In for Free Access

Login with email for free guest access to a range of Rise content
Go!
Logging You In!
Incorrect Password (Click Here to Reset)! Passwords Must Match Password must be more than 8 characters
Skip this for now
|
Man Met Access Here
menu

Datatypes

In Python, you will often need to work with different types of data to make your code work. There are several different types:

  • Strings – These are usually bits of text enclosed within quotation marks “”.

  • Integer – This the term Python uses for a number.

  • Float – This is a number with a factional component (i.e. a decimal point).

  • Boolean – These are datatypes with two possible values: True or False.

Exercise 1 – Decide on Data Types

For this exercise, open the Python file below and fill in the datatypes.

OPTIONAL