Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
19.09.18
#python 3.5.2 from math import* s='słowo' c=[1,2] print ("Hello, world!") lista=[1,'a',23,'abba',c,5,24,123,1.2,34] print(lista) c.append(3) print(lista) print(lista[4][1]) print(lista[1:7:2])# od 2 do 5 co drugi print(lista[3::3]) print(lista[::3]) print(lista[::-1]) #odwraca print(s[::-1]) def odwr(napis): #rozpoczęcie funkcji o='' for l in napis: o=l+o return o print(odwr('hybrydyzacja sp3')) w=[i**5 for i in range(-20,20,10)] print(w) literki=[chr(i) for i in range(97,123)] print(literki)
run
|
edit
|
history
|
help
0
Python.py
PyRef
PyRegSplit
Owl
Guru
raja praja
pip install pyowm==2.7.1
Kim
Hw
Place strings to proper bucket