<jupyter_start><jupyter_text>User Input in Python  Type Conversion  Float to Integer<jupyter_code># Convert into integer 
a = 5.25 
# Check of `a` type before conversion
type(a)
# Conversion
int_a = int(a)
# Check of `a` type after conversion
type(int_a)<jupyter_output><empty_output><jupyter_text>Integer to Float<jupyter_code># Convert into float 
b = 10 
# Check of `b` type before conversion
type(b)
# Conversion
float_b = float(b)
# Check of `b` type after conversion
type(float_b)<jupyter_output><empty_output><jupyter_text>Integer to String<jupyter_code># Convert into string  
c = 20
# Check of `c` type before conversion
type(c) 
# Conversion
str_c = str(c)
# Check of `c` type after conversion
type(str_c)<jupyter_output><empty_output><jupyter_text>String to Integer<jupyter_code># Convert into integer or float 
d = '20'
# Check of `d` type before conversion
type(d) 
# Conversion
int_d = int(d) 
# Check of `d` type after conversion
type(int_d)<jupyter_output><empty_output><jupyter_text>Single Input--Without Message<jupyter_code># Take input from user without message 
input()
# Take input and store it to a variable 
num = input() 
print(num)
# Check your input type 
type(num)
# Convert your input
num2 = int(input())
num3 = float(input())
type(num3)
type(num2)<jupyter_output><empty_output><jupyter_text>Single Input--With Message<jupyter_code># Take an input with message 
X = int(input("Enter an integer: "))
type(X)
# Check your input type 
# Convert your input<jupyter_output><empty_output><jupyter_text>Put it Together<jupyter_code>A = int(input("Enter an integer: "))<jupyter_output><empty_output><jupyter_text>Examples  \begin{example}Write a Python Program to Add Two Integers \end{example}<jupyter_code># Write your solution here! 
num1 = int(input("Enter your first number: ")) 
num2 = int(input("Enter your second number: "))

total = num1 + num2
print("Total = ", total)<jupyter_output>Enter your first number: 10
Enter your second number: 20
Total =  30<jupyter_text>\begin{example}Write a Python Program to Multiply Two Floating Point Numbers \end{example}<jupyter_code># Write your solution here! 
num3 = float(input("Enter your first float: "))
num4 = float(input("Enter your second float: "))

total2 = num3 + num4 
print("Total = ", total2)<jupyter_output>Enter your first float: 10
Enter your second float: 20
Total =  30.0<jupyter_text>Multiple Inputs- map()- split()<jupyter_code># Convert and Split<jupyter_output><empty_output><jupyter_text>\begin{example}Write a Python Program to Add Tree Integers.\end{example}<jupyter_code># Write your solution<jupyter_output><empty_output><jupyter_text>\begin{example}Write a Python Program to Multiply Tree Floating Point Numbers\end{example}<jupyter_code># Write your solution<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10979547900968784, 'fraction_numerical': 0.012917115177610334, 'mean_word_length': 6.65934065934066, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '12', 'dir': 'jupyter-structured-clean-dedup', 'id': '324478', 'license': 'CC0-1.0', 'n_tokens_mistral': 992, 'n_tokens_neox': 955, 'n_words': 271, 'path': 'book/python/03-user_input&data_type_conversion.ipynb', 'repo_name': 'hossainlab/dsnotes', 'size': '2787'}