Skip to content

Instantly share code, notes, and snippets.

View akashrchandran's full-sized avatar
drinking coffee and coding

Akash R Chandran akashrchandran

drinking coffee and coding
View GitHub Profile
@akashrchandran
akashrchandran / answers.md
Last active January 5, 2023 19:40
Answer for every python question on snakify.org

Every Answer for Python at snakify.org

Sum of three numbers

a = int(input())
b = int(input())
c = int(input())
print(a + b + c)
@akashrchandran
akashrchandran / deezer_lyrics.py
Created September 25, 2022 08:03
A simple way to get synchronised album lyrics from deezer and save it lrc file.
import requests
import contextlib
API_BASE = 'http://www.deezer.com/ajax/gw-light.php'
session = requests.Session()
def api_call(token, method, json=None):
params = {'api_version': "1.0", 'api_token': token,'input': '3', 'method': method}
req = session.post(API_BASE, params=params, json=json)
return req.json()