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
#!/usr/bin/env python3 | |
# Rostás Balázs - Emelt informatika érettségi 2005 október - Vigenére Tábla | |
import string | |
# 1. feladat: | |
while True: | |
szovegBe = input("Kérem adjon meg egy maximum 255 karakter hosszú szöveget: ") |
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
#!/usr/bin/env python3 | |
# Rostás Balázs - Emelt informatika érettségi 2009 október - Útépités | |
def masodperc(lista): | |
return (lista[0]*3600) + (lista[1]*60) + (lista[2]) | |
def ora(masodperc): | |
ora = masodperc // 3600 |
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
#!/usr/bin/env python3 | |
# Rostás Balázs - Emelt informatika érettségi 2010 október - Anagramma | |
def anagrammaKereses(keresettSzo, szavak): | |
anagramma = True | |
anagrammaSzavak = [] | |
for szo in szavak: |
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
#!/usr/bin/env python3 | |
# A legelső sor jelzi a gépnek hol található a python fordító a gépben és melyik verzióját használja. /usr/bin/env python3 env szócska univerzális, minden operációs rendszeren működik! | |
# A python3 jelzi, hogy ha esetleg több verzió van telepítve akkor a 3-asat használja! | |
# Rostás Balázs - Emelt informatika érettségi 2012 május - Futár | |
# Díjkalkuláció függvény létrehozása | |
def fizetes(km): |
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
#!/usr/bin/env python3 | |
# Rostás Balázs - Emelt informatika érettségi 2013 május - Választások | |
class Valaszto(object): | |
def __init__(self, kerSzam, szavSzam, vezNev, utoNev, part): | |
self.kerSzam = kerSzam | |
self.szavSzam = szavSzam | |
self.vezNev = vezNev |
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
#!/usr/bin/env python3 | |
# Rostás Balázs - Emelt informatika érettségi 2005 május - Lottó | |
# Fájl beolvasás függvénnyel: (Végül egyszer van csak felhasználva a függvény, de gyakorlásképp oldottam meg így) | |
def fajlBe(fajl): | |
fajlBe = open(fajl, "r") | |
lottoSzamLista = [] | |
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
#!/usr/bin/env python3 | |
# Rostás Balázs - Emelt informatika érettségi 2009 május - Lift | |
import random | |
# 1. feladat | |
fajlBe = open("igeny.txt" ,"r") | |
szintSzam, csapatSzam, igenySzam = int(fajlBe.readline()), int(fajlBe.readline()), int(fajlBe.readline()) |
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
#!/usr/bin/env python3 | |
# Rostás Balázs - Emelt informatika érettségi 2010 május - Helyjegy | |
# 1.feladat | |
fajlBe = open("eladott.txt", "r") | |
buszAdat = fajlBe.readline() | |
buszAdat = buszAdat.strip().split() | |
buszAdat = [int(adat) for adat in buszAdat] |
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
#!/usr/bin/env python3 | |
# Rostás Balázs - Emelt informatika érettségi - 2011 május - Szójáték | |
# Fájl beolvasása | |
szavakFajl = open("szoveg.txt", "r") | |
szavakAdat = [ szo.strip().split() for szo in szavakFajl ] | |
szavakFajl.close() |
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
#!/usr/bin/env python3 | |
# Rostás Balázs - Emelt informatika érettségi 2012 október - Színkép | |
# 1. feladat | |
kepFajl = open("kep.txt", "r") | |
kepAdat = [ sor.strip("\n").split(" ") for sor in kepFajl ] | |
kepAdat = [ [ int(szam) for szam in lista ] for lista in kepAdat ] | |
kepAdat = [ kepAdat[index:index+50] for index in range(0, len(kepAdat), 50) ] |
OlderNewer