@masonjargon/

scratch

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import random

my_list = [n for n in range(1,30)]

for i in range(5):
  print (random.choice(my_list))


exit()

from functools import reduce
import copy

x = [1,0,3,4]
y = x.copy()

y.sort()

print (x)
print (y)

print (id(x))
print (id(y))

input("pause")
print (x is 5)

def foo(x,y):
  return x+y

def goo(x,y):
  return x*y

z = reduce(lambda x,y : x*y, range(1,7))
print(z)