Hi, i made iam a total beginner and i made this code for learning purposes, this code let you calculate your IQ out of 5 (n/5) by the average marks you get in 5 subjects (if mark is >=10, return +1),(sorry for the dumb code idea xD)

the problem is the output is always different than excpected (logical problem)

thanks for help!

the problem is the output is always different than excpected (logical problem)

print("what's your IQ application 'n/5'") print("tell us your average mark in every subject and we'll tell you your IQ ^^") # try def IQcalculator(lang, math, sci, comp_sci, arts): dict = {lang: 0, math: 0, sci: 0, comp_sci: 0, arts: 0} for i in dict: if i is True: i += 1 else: i += 0 if lang >= 10: dict[lang] = True else: dict[lang] = False if math >= 10: dict[math] = True else: dict[math] = False if sci >= 10: dict[sci] = True else: dict[sci] = False if comp_sci >= 10: dict[comp_sci] = True else: dict[comp_sci] = False if arts >= 10: dict[arts] = True else: dict[arts] = False print("Your IQ IS: ", len(dict.values())) lang = int(input("your avr marks in languages: ")) math = int(input("your avr marks in maths: ")) sci = int(input("your avr marks in science: ")) comp_sci = int(input("your avr marks in computer science: ")) arts = int(input("your avr marks in arts: ")) IQcalculator(lang, math, sci, comp_sci, arts)random output:

```
Output:your avr marks in languages: 6
your avr marks in maths: 7
your avr marks in science: 14
your avr marks in computer science: 3
your avr marks in arts: 20
Your IQ IS: 5
```

as you can see the supposed output is 2 but it's 5thanks for help!