Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#define NOTE_B0 31 | |
#define NOTE_C1 33 | |
#define NOTE_CS1 35 | |
#define NOTE_D1 37 | |
#define NOTE_DS1 39 | |
#define NOTE_E1 41 | |
#define NOTE_F1 44 | |
#define NOTE_FS1 46 | |
#define NOTE_G1 49 | |
#define NOTE_GS1 52 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 requests | |
from bs4 import BeautifulSoup | |
#Get website with cordinates of my city ( Novi pazar | |
data = requests.get("https://darksky.net/forecast/43.1379,20.5124/si12/en") | |
soup = BeautifulSoup(data.text, "html.parser") | |
soup.prettify() | |
#Selecting specific div on website which contains elements we like to display | |
results=soup.find_all('span', class_='desc swap') |
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 cs50 import get_int | |
while True: | |
height = get_int("Enter height of half-pyramid: ") | |
if height >= 1 and height <= 8: | |
break | |
for i in range(height): | |
print(' ' * (height-1-i), end="") | |
print('#' * (i+1), end="") |
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
name | house | birth | |
---|---|---|---|
Adelaide Murton | Slytherin | 1982 | |
Adrian Pucey | Slytherin | 1977 | |
Anthony Goldstein | Ravenclaw | 1980 | |
Blaise Zabini | Slytherin | 1979 | |
Cedric Diggory | Hufflepuff | 1977 | |
Cho Chang | Ravenclaw | 1979 | |
Colin Creevey | Gryffindor | 1981 | |
Dean Thomas | Gryffindor | 1980 | |
Draco Lucius Malfoy | Slytherin | 1980 |
OlderNewer