Upload
danijela-knezevic
View
215
Download
0
Embed Size (px)
DESCRIPTION
skriptni
Citation preview
In [ ]: # program pretvara kuteve iz decimalnog zapisa u stupnjeve, minute i sekunde# korisnika se prvo pita koju konverziju zeli napraviti: deg -> dms ili dms -> deg# nakon toga se pita za unos 'vrijednosti' koju treba pretvoriti
# format deg zapisa: 152.18421# format dms zapisa: 152:11:3.16
In [ ]: tekst = """The Simpson family visit Story Town Village, an amusement park for babies, as a special treat for Maggie. In the village, there is a petting zoo, where Lisa is enraptured by a cute lamb. That night, Marge serves lamb chops for dinner, but Lisa is troubled by the connection between the dish and its living counterpart, and announces that she will no longer eat meat. In response, Bart and Homer mock her relentlessly. Reaction at school is no better; when Lisa requests a vegetarian alternative to the cafeteria food, Principal Skinner labels her an 'agitator'. The students are then forced to watch a Meat Council propaganda film, 'The Meat Council Presents Meat and You: Partners in Patriotism', starring Troy McClure, which portrays eating meat as a patriotic duty, and criticizes vegetarianism. Lisa is unimpressed by the film, but her classmates tease her."""
# program prebrojava koliko ima rečenica, riječi i samoglasnika (a,e,i,o,u) u zadanom tekstu# pretpostavka je da su rečenice odvojene točkom '.' a riječi razmakom ' '
In [ ]: # Zadane su kooridnate tri grada, potrebno je odrediti matricu njihovih međusobnih udaljenosti# https://en.wikipedia.org/wiki/Distance_matrix
grad1 = [46,16]grad2 = [43,22]grad3 = [45,18]
1 of 1