Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Blockpy says that I need two numbers to perform some operation an then print that result which I did. What am I doing wrong here?

image text in transcribed

Blockpy says that I need two numbers to perform some operation an then print that result which I did. What am I doing wrong here?

of Programming Assignments > Programming 21- Unit Tests Programming 21- Unit Tests BlockPy: #21.1) Mysterious Math This mysterious function has failed its unit test. It is supposed to consume two numbers, perform some operation, and then return the result Diagnose what operation it is SUPPOSED to be doing, and fix the code to pass the unit tests. Console: I ran your function mysterious_math on some new arguments, and it failed 2/4 tests. A Arguments Returned Expected 2, 3 X X 3, 1 2, @ e, 4 Evaluate Upload - History def mysterious math (a:int, b:int)->ints return print (mysterious_math(1, 2,)) Run #Blocks Split Text Reset Import datasets Variables define mysterious math Decisions parameters:a i nt Iteration b : Lint Calculation returns int Output return 0 Input Turtles print ( mysterious_math (10 @)! Values Conversion A 98 1:45 PM

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Climate And Environmental Database Systems

Authors: Michael Lautenschlager ,Manfred Reinke

1st Edition

1461368332, 978-1461368335

Students also viewed these Databases questions