Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- #print(math.pi)
- #print("sup niggy")
- #a = input ("gimme your biggy")
- #b=[1,"abc",2.3]
- #b.append(b)
- #print(b[-1])
- #print(b[0:3])
- #print(b[0:3:2])
- #c=['a',5,7.2]
- #d,e,f=c
- #print(type(a))
- #len(b)
- #zad 1
- #a=[1,2,3,4,5]
- #print(a[::-1])
- #zad 2
- #a=input("Podaj wzrost: ")
- #b=input("Podaj wage: ")
- #a=(float(a)*1000)
- #b=(float(b)*1000)
- #print("Twoja wzrost to ",a," milimetrow")
- #print("Twoja waga to ",b," gramow")
- #zad3
- #x=5
- #y=7
- #z=(math.pi)*math.log((x+1),2)*((x*x)/((math.e**-y)+6))
- #print("Wynik to: ",z)
- #a=11.5
- #b=-6.5
- #c=(math.pi)*math.log((a+1),2)*((a*a)/((math.e**-b)+6))
- #print("Wynik to: ",c)
- #zad4
- #x=int(input("Podaj wartosc x: "))
- #y=int(input("Podaj wartosc y: "))
- #print("Wybierz opcje c: ")
- #print("1 = suma, 2 = roznica, 3 = iloczyn ")
- #c=input()
- #kalkulator
- #if c=='1':
- # print(x+y)
- #elif c=='2':
- # print(x-y)
- #elif c=='3':
- # print(x*y)
- #else:
- # if y>0 and x>0:
- # print(x/y)
- # else:
- # print("We dont do that here.")
- #zad5
- #n=int(input("Podaj dlugosc ciagu, n: "))
- #fin=[0,1]
- #if n==1:
- # print(fin[0])
- #elif n==2:
- # print(fin[1])
- #else:
- # for i in range(2,n):
- # fin.insert(i,fin[i-1]+fin[i-2])
- #print(fin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement