# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# + [markdown] colab_type="text" id="view-in-github"
# <a href="https://colab.research.google.com/github/FairozaAmira/AI_Programming_1_e/blob/master/Lesson05/Integers.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>

# + [markdown] colab_type="text" id="0-GIXNONlAn6"
# # Integers

# + [markdown] colab_type="text" id="GfqrqQEClAn8"
# *Question 1*
#
# Find the type of the value of the variables below.
#
# x = 1
#
# x = 1.5

# + colab={} colab_type="code" id="8nSmzEmXlAn9" outputId="fdf6df61-8b46-4660-e8b8-c886fd8e6ec2"
x = 1
type(x)

# + colab={} colab_type="code" id="4po0bQenlAoB" outputId="0acfb169-f4ef-4877-f644-3e71d6b45044"
x = 1.5
type(x)

# + [markdown] colab_type="text" id="II-QQMx5lAoD"
# *Question 2*
#
# Divide 7 by 3.

# + colab={} colab_type="code" id="CSIJvYF-lAoE" outputId="fcb200ff-f6bf-438d-9ad5-a944d535b218"
print ( 7 / 3)

# + [markdown] colab_type="text" id="llL3SNt2lAoG"
# *Question 3*
#
# Divide 7 by 3 but the answer should be in integer value.

# + colab={} colab_type="code" id="7ccedYWklAoH" outputId="f4d8a77f-3c33-4276-914f-29711e11c3b4"
print ( 7 // 3)

# + colab={} colab_type="code" id="c8O-PLrflAoI"


StarcoderdataJupyterScriptsDedupFiltered