Skip to content

Instantly share code, notes, and snippets.

View py310's full-sized avatar
🌑
To the Moon and Back

To trade, or not to trade py310

🌑
To the Moon and Back
  • Ukraine
  • 04:20 (UTC +03:00)
View GitHub Profile
from forex_python.converter import CurrencyRates
print(CurrencyRates().get_rates("USD"))
def factorial(n):
if n == 0:
return 1
else:
return n * factorial(n-1)
with open("./large_dataset.txt") as input_file:
for line in input_file:
process_line(line)
# pip install speedtest-cli
import speedtest
st = speedtest.Speedtest()
download_speed = st.download()
print (download_speed / (2 ** 20))
# 840.95
print('Hello, World!')