Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. import math
  2. #print(math.pi)
  3. #print("sup niggy")
  4. #a = input ("gimme your biggy")
  5. #b=[1,"abc",2.3]
  6. #b.append(b)
  7. #print(b[-1])
  8. #print(b[0:3])
  9. #print(b[0:3:2])
  10. #c=['a',5,7.2]
  11. #d,e,f=c
  12. #print(type(a))
  13. #len(b)
  14.  
  15.  
  16. #zad 1
  17. #a=[1,2,3,4,5]
  18. #print(a[::-1])
  19.  
  20. #zad 2
  21. #a=input("Podaj wzrost: ")
  22. #b=input("Podaj wage: ")
  23. #a=(float(a)*1000)
  24. #b=(float(b)*1000)
  25. #print("Twoja wzrost to ",a," milimetrow")
  26. #print("Twoja waga to ",b," gramow")
  27.  
  28. #zad3
  29. #x=5
  30. #y=7
  31. #z=(math.pi)*math.log((x+1),2)*((x*x)/((math.e**-y)+6))
  32. #print("Wynik to: ",z)
  33. #a=11.5
  34. #b=-6.5
  35. #c=(math.pi)*math.log((a+1),2)*((a*a)/((math.e**-b)+6))
  36. #print("Wynik to: ",c)
  37.  
  38. #zad4
  39. #x=int(input("Podaj wartosc x: "))
  40. #y=int(input("Podaj wartosc y: "))
  41. #print("Wybierz opcje c: ")
  42. #print("1 = suma, 2 = roznica, 3 = iloczyn ")
  43. #c=input()
  44.  
  45. #kalkulator
  46. #if c=='1':
  47. # print(x+y)
  48. #elif c=='2':
  49. # print(x-y)
  50. #elif c=='3':
  51. # print(x*y)
  52. #else:
  53. # if y>0 and x>0:
  54. # print(x/y)
  55. # else:
  56. # print("We dont do that here.")
  57.  
  58. #zad5
  59. #n=int(input("Podaj dlugosc ciagu, n: "))
  60. #fin=[0,1]
  61. #if n==1:
  62. # print(fin[0])
  63. #elif n==2:
  64. # print(fin[1])
  65. #else:
  66. # for i in range(2,n):
  67. # fin.insert(i,fin[i-1]+fin[i-2])
  68. #print(fin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement