1 Answer

New Answer#Comparing two rectangles R_1_L = float( input("Please enter the length of Rectangle 1: ") ) R_1_W = float( input("Please enter the weidth of Rectangle 1: ") ) R_2_L = float( input("Please enter the length of Rectangle 2: ") ) R_2_W = float( input("Please enter the weidth of Rectangle 2: ") ) R_1_A = R_1_L * R_1_W R_2_A = R_2_L * R_2_W if R_1_A > R_2_A: print("R 1 is bigger than R 2") elif R_1_A < R_2_A: print("R 2 is bigger than R 1") else: print("R 1 is equal to R 2") Please enter the length of Rectangle 1: Traceback (most recent call last): File "..\Playground\", line 3, in <module> R_1_L = float( input("Please enter the length of Rectangle 1: ") ) ValueError: could not convert string to float:

6/28/2019 8:18:25 PM

Samad Sunny1 Answer

New Answer
Welcome to SoloLearn forum!
Can 2 programming languages interact with each other in one
Why can C not be called functional programming?
For how long would I have to be NOT coding to forget how to
Is it a bug of the code playground(on pc)?
[C++] Need help with cin input
Do we need to learn AutoCAD for developing 2D and 3D Games
How can I link an iframe which loads when a button is clicked
What's the difference in these programming languages?
Math for 3D Modeling

Learn Playing. Play Learning

SoloLearn Inc.

5020 Franklin Drive, Suite 100

Pleasanton, CA 94588

© 2019 SoloLearn, Inc. All rights reserved.

Send us a message