-
Ozoemena replied to the topic How to fix invalid literal for int() with base 10 in Python? in the forum
Web Development
Hi Ike.
Please try float your height and weight as seen below and you’ll be fine.h = float(height)
w = float(weight) -
Olamiposi joined the group
Web Development
-
Ikenna dike started the topic How to fix invalid literal for int() with base 10 in Python? in the forum
Web Development
Hello all.
Please I have challenge on an assignment. I am getting this error invalid literal for int() with base 10 while trying to run a function I created to calculate BMI. I did a code like this:
height = input("enter your height in m: ")
Read More
weight = input("enter your weight in kg: ")
h = int(height)
w = int(weight)
BMI =…1 Comment -
Nebuzz joined the group
Web Development
-
Pierre-Andre joined the group
Web Development
- Load More Posts
Posts That may interest you
- Tips and Materials for a Design Interview
- How to Excel in In UI/UX Career : Ultimate Guide
- 10 ways to show a guy that you like him without being too forward
- How to Monetize your blog: Detailed Guide
- How to Approach a Girl for a Relationship: Tips and Tricks to Win Her Heart
- Unraveling the Mystery of a Dream Inside Another Dream (Nested Dreams)
- How to Avoid and Handle Sleep Paralysis: Overcoming the Nightmare
- How Do I Know a Man That Truly Loves Me
- How your type of music shapes your life
- Causes of Mouth Odor and Natural Remedies
@pierre-andre, @globalexperts, @issacozoad and everyone, I will appreciate your help to check what I am doing wrong.