Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
why is the answer 20 instead of 20.0
python
variables
-3 Votes
4 Answers
18th Aug 2016, 3:38 PM
hansen w
How to round 20.0 in to 2 floating points in python 2.7??
background
1 Vote
3 Answers
28th Jan 2018, 11:28 AM
Sachitha Upeksha
If print(10/2) shows result as 5.0 , print(10//2) shows 5 then print(10*2) shows 20.0 but print(10**2) is showing 100.0 why?
pythonoperations
0 Votes
5 Answers
12th May 2021, 6:03 AM
pranav
Can anyone please help me with this code please,
20.0
java
quiz,please
0 Votes
4 Answers
14th Jan 2022, 10:23 PM
Giddy Da-huncho🙃😇💓
Если ноль в конце числа пайтоном игнорится ( 8.900 = 8.9 ), то почему 15.0 + 5 = 20.0
data-types
python
-4 Votes
2 Answers
10th Jan 2017, 7:58 PM
Andrey
eggs = 4 spam = 5 print (eggs*spam) output = 20 but the answer must be 20.0 right? because any action on integers yields a float value?
arithematic
python
variables
0 Votes
3 Answers
26th Aug 2016, 4:28 PM
The Flash
Ask a question
Ask a question
Ask a question
Ask a question
Hot today
Facing challenges when trying to code...
1 Votes
How to make a calculator!? More info in the question body
1 Votes
Does anyone know how to center a button by chance?
1 Votes
rules for posts here?
1 Votes
Real world applications?
0 Votes
Anyone worried about AI replacing web developers?
1 Votes
Python variable
0 Votes
Hi, I'm super beginner and want to know how to start
0 Votes
PYTHON TUTOR
1 Votes
What should I use
2 Votes