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
import math | |
l = 50 | |
def is_prime(num: int) -> bool: | |
lim = math.floor(math.sqrt(num)) | |
for i in range(2, lim+1): | |
if num % i == 0: | |
return False | |
return True |
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
from collections import Counter | |
name = "Aashish Chaubey" | |
vowels = "aeiou" | |
vowels_list = list(filter(lambda x: x in vowels, name.lower())) | |
print(f"Number of vowels in name is: {len(vowels_list)}") | |
print(dict(Counter(vowels_list))) |
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
package main | |
import ( | |
"fmt" | |
"http://github.com/robfig/cron/v3" | |
"sync" | |
"time" | |
) | |
func one() { |
OlderNewer