This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Implementation in ES6 | |
function pagination(c, m) { | |
var current = c, | |
last = m, | |
delta = 2, | |
left = current - delta, | |
right = current + delta + 1, | |
range = [], | |
rangeWithDots = [], | |
l; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# importing the library | |
from covid import Covid | |
# initializing | |
covid = Covid() | |
# printing data for the world | |
print("Total active cases in world:", covid.get_total_active_cases()) | |
print("Total recovered cases in world:", covid.get_total_recovered()) | |
print("Total deaths in world:", covid.get_total_deaths()) | |
# getting data according to country wise | |
cases = covid.get_status_by_country_name("us") |
NewerOlder