<jupyter_start><jupyter_text>Victor_Assignment 21st April, 2012 **Data_types**1. Integer2.float3.   Boolean There are three numeric types in Python:intfloatcomplexVariables of numeric types are created when you assign a value to them:<jupyter_code>x = 1    # integer
y = 2.8
z = 1j   # complex

print(x)

print(type(x))
print(type(y))
print(type(z))     #It picks from all over the page<jupyter_output>1
<class 'int'>
<class 'float'>
<class 'complex'><jupyter_text>**Float**Float, or "floating point number" is a number, positive or negative, containing one or more decimals.<jupyter_code>y = 2.8 # float
print(y)
print(type(y))<jupyter_output>2.8
<class 'float'><jupyter_text>**Conversion**<jupyter_code>x = 1    # int
y = 2.8  # float
z = 1j   # complex

#convert from int to float:
a = float(x)

#convert from float to int:
b = int(y)

#convert from int to complex:
c = complex(x)

print(a)
print(b)
print(c)

print(type(a))
print(type(b))
print(type(c))<jupyter_output>1.0
2
(1+0j)
<class 'float'>
<class 'int'>
<class 'complex'><jupyter_text>**Booleans** Booleans represent one of two values: True or False.<jupyter_code>print(10 > 9)
print(10 == 9)
print(10 < 9)
a = 200
b = 33

if b > a:
  print("b is greater than a")
else:
  print("b is not greater than a")<jupyter_output>b is not greater than a
{'fraction_non_alphanumeric': 0.13946360153256704, 'fraction_numerical': 0.031417624521072794, 'mean_word_length': 5.131455399061033, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '358407', 'license': 'Apache-2.0', 'n_tokens_mistral': 537, 'n_tokens_neox': 507, 'n_words': 152, 'path': 'Data_Structures.ipynb', 'repo_name': 'vnestory/datascience', 'size': '1305'}