def selectEvenNumbers(numbers):
theHighestEvenNumber = -1
for i in numbers:
if i % 2 == 0:
theHighestEvenNumber = max(theHighestEvenNumber, i)
print(theHighestEvenNumber)
# selectEvenNumbers([5, 90, 20, 120, 36, 40, 45])
# selectEvenNumbers([5, 90, 20])
# selectEvenNumbers([120, 36, 40, 45])
def best_acceleration(powers, masses):
ind = -1
wsp = -1
for i in range(0, len(powers)):
tempWsp = powers[i] / masses[i]
if tempWsp == max(tempWsp, wsp):
ind = i
wsp = tempWsp
if ind > -1:
return [wsp, powers[ind], masses[ind]]
else:
return [0, 0, 0]
# print(best_acceleration([100, 150, 300, 750], [1000, 1500, 2500, 1000]))
# print(best_acceleration([100, 200, 400], [100, 50, 10]))
# print(best_acceleration([], []))
def get_battery_wear(min_charge, max_charge):
poz = 0.00
for val in range(min_charge, max_charge):
if val in range(0, 50):
poz = poz + 0.01
if val in range(50, 80):
poz = poz + 0.04
if val in range(80, 100):
poz = poz + 0.1
return poz
print(get_battery_wear(0, 50)) # => 0.5
print(get_battery_wear(20, 35)) # => 0.15
print(get_battery_wear(50, 80)) # => 0.04 * 3 = 1.2
print(get_battery_wear(60, 80)) # => 0.04 * 2 = 0.8
print(get_battery_wear(80, 100)) # => 0.1 * 2 = 2.0
print(get_battery_wear(0,100)) # => 3.7
# taka sobie testowa na poczatku zajec
def rekTest(str):
if(len(str) >= 1):
str = str[1:len(str)]
print(str)
rekTest(str)
else:
print('nie ma znakow')
print('Wracam z ciagu: ' + str)
# rekTest("testujemy ciag")
def zad1():
liczby = []
for liczba in range(1, 100):
if liczba % 2 == 0:
liczby.append(liczba)
for liczba in liczby:
print(liczba)
# zad1()
def zad2():
nowaLiczba = []
liczby = input('Podaj liczbe: ')
for liczba in liczby:
nowaLiczba.append(int(liczba))
nowaLiczba.sort()
print(liczby)
print(nowaLiczba)
# zad2()
def zad3():
liczby = input('Podaj liczbe do wyswietlenia kombinacji: ')
print(f'Ciag ma {len(liczby)} cyfr!')
def szyfr(baza, liczby):
if len(liczby) == len(baza):
print("K: " + baza)
else:
for liczba in range(0,len(liczby)):
szyfr(liczby[liczba] + baza, liczby)
szyfr("", liczby)
zad3()
def zad4():
for liczbaZ7 in range(100, 1000):
if "7" in str(liczbaZ7):
print("Liczba: " + str(liczbaZ7))
# zad4()
haslo = ''
hasloblad = True
while hasloblad:
haslo = input('Podaj haslo: ')
hasloblad = False
if len(haslo) < 8:
hasloblad = True
print('Haslo posiada mniej niz 8 znakow!')
if haslo.upper() == haslo.lower():
hasloblad = True
print('Haslo nie zawiera brak liter!')
if haslo.upper() == haslo or haslo == haslo.lower():
hasloblad = True
print('Haslo musi miec male i duze litery!')
if not ("#" in haslo or "%" in haslo or "&" in haslo or "!" in haslo):
hasloblad = True
print('Haslo nie zawiera znakow specjalnych!')
print("Ok, haslo to " + haslo)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ćwiczenie</title>
<style>
html, body {
padding: 0;
margin: 0;
}
* {
box-sizing: border-box;
}
header, section, footer {
width: 100%; /* domyślne, ale i tak */
}
header {
padding: 5px;
height: 20vh;
background-color: #d0e4f5;
text-align: center;
}
section {
height: 70vh;
position: relative;
background-color: #333;
}
section nav {
padding: 5px;
height: 70vh;
width: 30%;
float: left;
background-color: #ffffffff;
overflow: auto;
}
section article {
padding: 5px;
height: 70vh;
width: 70%;
float: left;
background-color: #aeaeae;
overflow: auto;
}
footer {
height: 10vh;
text-align: center;
padding: 5px;
clear: both;
background-color: #6592b9;
}
</style>
</head>
<body>
<header>
<h2>MOVIES</h2>
</header>
<section>
<nav>
<ul>
<li>AVENGERS</li>
<li>SAW</li>
<li>JOCKER</li>
</ul>
</nav>
<article>
<h3>AVENGERS</h3>
<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration
in some form, by injected humour, or randomised words which don't look even slightly believable. If you
are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden
in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks
as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200
Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks
reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or
non-characteristic words etc.</p>
<p>It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and
more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p>
<p>Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text,
and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have
evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>
</article>
</section>
<footer>
Movies 2021, © Piotr Greczka
</footer>
</body>
</html>
net stop bits
net stop wuauserv
Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"
%systemroot%\SoftwareDistribution\DataStore
%systemroot%\SoftwareDistribution\Download
%systemroot%\system32\catroot2
Ren %systemroot%\SoftwareDistribution\DataStore *.bak
Ren %systemroot%\SoftwareDistribution\Download *.bak
Ren %systemroot%\system32\catroot2 *.bak
sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
cd /d %windir%\system32
regsvr32.exe atl.dll
regsvr32.exe urlmon.dll
regsvr32.exe mshtml.dll
regsvr32.exe shdocvw.dll
regsvr32.exe browseui.dll
regsvr32.exe jscript.dll
regsvr32.exe vbscript.dll
regsvr32.exe scrrun.dll
regsvr32.exe msxml.dll
regsvr32.exe msxml3.dll
regsvr32.exe msxml6.dll
regsvr32.exe actxprxy.dll
regsvr32.exe softpub.dll
regsvr32.exe wintrust.dll
regsvr32.exe dssenh.dll
regsvr32.exe rsaenh.dll
regsvr32.exe gpkcsp.dll
regsvr32.exe sccbase.dll
regsvr32.exe slbcsp.dll
regsvr32.exe cryptdlg.dll
regsvr32.exe oleaut32.dll
regsvr32.exe ole32.dll
regsvr32.exe shell32.dll
regsvr32.exe initpki.dll
regsvr32.exe wuapi.dll
regsvr32.exe wuaueng.dll
regsvr32.exe wuaueng1.dll
regsvr32.exe wucltui.dll
regsvr32.exe wups.dll
regsvr32.exe wups2.dll
regsvr32.exe wuweb.dll
regsvr32.exe qmgr.dll
regsvr32.exe qmgrprxy.dll
regsvr32.exe wucltux.dll
regsvr32.exe muweb.dll
regsvr32.exe wuwebv.dll
netsh winsock reset
proxycfg.exe -d
net start bits
net start wuauserv
bitsadmin.exe /reset /allusers
https://www.ibood.com/diy-pl/pl/product-specs/choice/66918/12310/345307/wiertarko-wkrtarka-hikoki-18v-3x-30-ah.html
https://allegro.pl/oferta/ds18djlwkz-wiertarko-wkretarka-53nm-18v-hikoki-9194857075?utm_feed=aa34192d-eee2-4419-9a9a-de66b9dfae24&utm_source=google&utm_medium=cpc&utm_campaign=_DIO_pla_dom_narzedzia&ev_adgr=Narz%C4%99dzia&gclid=EAIaIQobChMI-Y687sj56wIVweeyCh1W_QRFEAQYCiABEgKcTPD_BwE
Czynności negatywnie wpływające na pracę strony i działające na niekorzyść, bądź wręcz szkodę użytkowników, są zabronione i będą karane!
Administrator strony nie bierze odpowiedzialności za dodawane treści
Wszystkie treści, zwłaszcza łamiące zasady dobrej etyki, mogą zostać zmoderowane w każdej chwili po uprzednim kontakcie z Administratorem
FAQ | Wykonał Piotr Greczka | Facebook twórcy (kontakt)