Skip to content
Snippets Groups Projects
Commit 11b0f0fd authored by Cedric Verstege's avatar Cedric Verstege
Browse files

:scroll:

parent 18f8a5db
Branches
No related tags found
No related merge requests found
Pipeline #4410 failed
import math,os,time,json
def f(x):return x*2+3*math.pi**2 if x>5 else x*3+2.7182
def g(a,b,c):return a+b*c-(b/a)+math.sin(a)
def h():return { 'key': [ 1, 2, 3,4], 'val': 'example' }
import math, os, time, json
def f(x):
return x * 2 + 3 * math.pi**2 if x > 5 else x * 3 + 2.7182
def g(a, b, c):
return a + b * c - (b / a) + math.sin(a)
def h():
return {"key": [1, 2, 3, 4], "val": "example"}
class Horrible:
def __init__(self):self.val=0
def m1(self,a):self.val+=a
def m2(self):return self.val
def m3(self):return self.val*10
def m4(self,a):self.val-=a
a=Horrible()
def __init__(self):
self.val = 0
def m1(self, a):
self.val += a
def m2(self):
return self.val
def m3(self):
return self.val * 10
def m4(self, a):
self.val -= a
a = Horrible()
a.m1(5)
a.m2()
a.m4(3)
print(f(a.m2())+g(2,3,4)-h()['key'][2]*a.m3())
print(f(a.m2()) + g(2, 3, 4) - h()["key"][2] * a.m3())
lint:
❄️8⬛:
stage: 🕵️
image: python:3.11
script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment