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
python help!!!
+1
Author: Manan
Dark
Public
Save
PY
py
1
2
3
4
5
6
7
8
9
10
amt
,
bal =
map
(
float
,
input
()
.split
())
bnk_ch =
0.5
if
amt %
5
==
0
and
bal - amt
-0.5
>=
0
:
bal -=
(
amt + bnk_ch
)
print
(
bal
)
else
:
print
(
bal
)
Enter to Rename, Shift+Enter to Preview
OUTPUT