Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radlaci97
fancy-btc
Commits
5ca1c322
Commit
5ca1c322
authored
Mar 07, 2018
by
Fancy Feri
Browse files
iz yello nao
parent
799c2067
Changes
2
Hide whitespace changes
Inline
Side-by-side
btc.py
View file @
5ca1c322
import
requests
from
pyfiglet
import
Figlet
from
colorama
import
Fore
# initialize figlet
f
=
Figlet
(
font
=
'big'
)
...
...
@@ -16,5 +17,5 @@ btc_to_huf = btc_to_huf.split('.')[1]
btc_to_huf
=
btc_to_huf
.
replace
(
','
,
'.'
)
# print it
print
(
f
.
renderText
(
"1 BTC = "
))
print
(
f
.
renderText
(
"{} HUF"
.
format
(
btc_to_huf
)))
print
(
Fore
.
YELLOW
+
f
.
renderText
(
"1 BTC = "
))
print
(
Fore
.
YELLOW
+
f
.
renderText
(
"{} HUF"
.
format
(
btc_to_huf
)))
requirements.txt
View file @
5ca1c322
requests
==2.12.4
pyfiglet
==0.7.5
colorama
==0.3.9
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment