+ 2
How do you solve this question print (9**(1/2)
I am new to this question so I don't really understand it
32 Respuestas
+ 4
If a number have 1/2 as its power, then that means we want it's square root, so here we want the square root of 9 which is 3
but you'll get 3.0 cause you did division
+ 2
(1/2) == 0.5 .... And mathematically, it refers to the square root.... Being a float, it should return a float.... So root of 9 is 3.0 (float)
+ 1
What's the question?
+ 1
If you have a delcimal number, you can use int(number) to convert the number. Change the number with your own variable name
+ 1
Wow Thanks so much 😍😍
+ 1
3
+ 1
4.5
+ 1
How????
+ 1
Mirielle thanks
+ 1
The answer must be 3.0
(9**(1/2))
Which means 9 to the power of 1/2 which is 0.5 (square root).
+ 1
*=multiplication.
**=exponential operator.
(9**(1/2)) it means ✓9 you can easily solve this and get the answer 3.0.
+ 1
First you should know that parenthesis () must always be closed in your code.
So it is only correct if you mean: (9**(1/2));
If so: Brackets are to be operated first then exponentiation..
(1/2) will produce a float: 0.5
Therefore, this will be 9^0.5== 3.0
+ 1
1/2 will result 0.5
9**0.5 means 9 to the power 0.5 which is 9 square root, which is 3.0
So, print(9**(1/2)) give give an output 3.0.
0
What is an interger
0
An integer is, a whole number (not a fractional number)
0
What if there is a question that you should find the interger of the amount of a certain number
0
What do you mean by "amount of a certain number"?
0
Like the question in fruit bowl
0
"Output Format
An integer representing the total number of whole apple pies that you can make."
It means that the output should be a whole number and not a fractional number
0
How???