Skip to content
Snippets Groups Projects
Commit a40fc1c0 authored by cprutean's avatar cprutean
Browse files

Upload New File

parent 3438a331
No related branches found
No related tags found
No related merge requests found
%% Cell type:markdown id:e955edf5 tags:
# Reading and Format Floats
%% Cell type:code id:0aa26554 tags:
``` python
"""
Starter Python programm to read in and print a 10^6 times the number then
the square of that in a single print statement.
"""
# Read in a float
x = float(input("Type in a floating point number : "))
x = x*1.0e6
y = x**2
# Print it out
print("1 million time is : " + str(x) + " and the square of this is : " + str(y))
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment