This file contains hidden or 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 | |
# encoding: utf-8 | |
all_turbines = 25 | |
turbine_counter = 1 | |
turbine_power = 2000 | |
sum_power = 0 | |
def turbine_printer(x,power): | |
is_half = int((power / 1000)%2) | |
full_or_half = ('teljes','fél') |
This file contains hidden or 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 | |
# encoding: utf-8 | |
counter = 1 | |
while counter <= 100: | |
if counter%5 == 0 and counter%3 == 0: | |
print(str(counter) + ' egér') | |
elif counter%5 == 0: | |
print(str(counter) + ' kutya') | |
elif counter%3 == 0: |
This file contains hidden or 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 | |
# encoding: utf-8 | |
age = int(input('Hány éves vagy? ')) | |
if age > 18: | |
print('Köszönjük! Elolvashatod ezt a cikket.') | |
elif age == 18: | |
print('Pont 18? Gratulálunk, üdv a felnőttek között! Jó szórakozást a cikkhez!') | |
else: |
This file contains hidden or 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
# encoding: utf-8 | |
ultimate_answer = '42' | |
if int(ultimate_answer) == 42: | |
print ('A válasz az életre, a világmindenségre, meg mindenre: ' + ultimate_answer) |
This file contains hidden or 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
procedure Atbash (var linien: TSrings); | |
var i:integer; | |
var string ABC; | |
begin | |
ABC:='aábcdefghiíjklmnoóöőpqrstuúüűvwxyz' | |
while (i>0) do | |
begin | |
end | |
end; |
This file contains hidden or 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
#!/bin/sh | |
function header() { | |
clear | |
echo "........................................." | |
echo " Simple Bulls And Cows Shell Script" | |
echo " copyleft BMYK! 2010" | |
echo "........................................." | |
echo | |
} |