from pathlib import Path
import json

content = Path('joker.json').read_text(encoding='utf-8')
print(type(content))
data = json.loads(content)
print(type(data))

def opp_eller_ned(x):
    if x <= 4:
        print('opp')
    else:
        print('ned') 

opp_eller_ned(data['grunntall'][0])  
opp_eller_ned(data['grunntall'][1])  
opp_eller_ned(data['grunntall'][2])  
opp_eller_ned(data['grunntall'][3])  
opp_eller_ned(data['grunntall'][4])  
