Python Online Compiler & Playground
HTML/CSS/JavaScript
HTML
CSS
Javascript
C++
C
PHP
Java
Python
Swift
C#
Ruby
Node.JS
Kotlin
jQuery
Go
R
TypeScript
Start Python Course
Register
Probability of dollar bills (code coach)
+3
Author: Mahi
Dark
Public
Save
PY
py
1
2
3
4
5
6
7
import
math
houses =
int
(
input
())
#your code goes here
if
houses>=
3
:
prob =
(
2
/houses
)
*
100
print
(
math.ceil
(
prob
))
Enter to Rename, Shift+Enter to Preview
OUTPUT