Calculate and display standard weight with python

Install python somehow.

Enter your height from the keyboard.

height = float (input ("Please enter your height (cm):")) bmi = 22 std_weight = bmi * (height / 100) ** 2 print ("height:" + str (height) + "cm →", end = "") print ("Standard weight:" + str (std_weight) + "kg")

Execution result

Enter your height (cm): 172 Height: 172.0cm → Standard weight: 65.1kg

maybe.

Recommended Posts

Calculate and display standard weight with python
Interactively display algebraic curves with Python and Jupyter
Programming with Python and Tkinter
Encryption and decryption with Python
Python and hardware-Using RS232C with Python-
Calculate Pose and Transform differences in Python with ROS
Display and shoot webcam video with Python Kivy [GUI]
python with pyenv and venv
Works with Python and R
[Python] Read the csv file and display the figure with matplotlib
Communicate with FX-5204PS with Python and PyUSB
Shining life with Python and OpenCV
Robot running with Arduino and python
Install Python 2.7.9 and Python 3.4.x with pip.
Matrix representation with Python standard input
Neural network with OpenCV 3 and Python 3
AM modulation and demodulation with python
[Python] font family and font with matplotlib
Scraping with Node, Ruby and Python
Scraping with Python, Selenium and Chromedriver
Scraping with Python and Beautiful Soup
JSON encoding and decoding with python
Hadoop introduction and MapReduce with Python
[GUI with Python] PyQt5-Drag and drop-
Comply with Python coding standard PEP8
Reading and writing NetCDF with Python
I played with PyQt5 and Python3
How to calculate date with python
Reading and writing CSV with Python
Multiple integrals with Python and Sympy
RPC completed with standard Python3 modules
Coexistence of Python2 and 3 with CircleCI (1.0)
Easy modeling with Blender and Python
Sugoroku game and addition game with python
FM modulation and demodulation with Python
Linking Python and Arduino to display IME On / Off with LED
Try to display google map and geospatial information authority map with python
Communicate between Elixir and Python with gRPC
Data pipeline construction with Python and Luigi
I compared python3 standard argparse and python-fire
Monitor Mojo outages with Python and Skype
FM modulation and demodulation with Python Part 3
[Automation] Manipulate mouse and keyboard with Python
Passwordless authentication with RDS and IAM (Python)
Python installation and package management with pip
Using Python and MeCab with Azure Databricks
POST variously with Python and receive with Flask
Display Python 3 in the browser with MAMP
Capturing images with Pupil, python and OpenCV
Fractal to make and play with Python
A memo with Python2.7 and Python3 on CentOS
Use PIL and Pillow with Cygwin Python
[Python] Display list elements with variadic arguments
Create and decrypt Caesar cipher with python
CentOS 6.4 with Python 2.7.3 with Apache with mod_wsgi and Django
Reading and writing JSON files with Python
How to display python Japanese with lolipop
Dealing with "years and months" in Python
I installed and used Numba with Python3.5
Tweet analysis with Python, Mecab and CaboCha
Linking python and JavaScript with jupyter notebook