0415_2

Run Settings
LanguagePython
Language Version
Run Command
#2. **Even or Odd Checker** #result = even_or_odd(7) #print(result) def even_or_odd(num): return "odd" if int(num) % 2 else "even" # use true and false result = even_or_odd(8) print(result) def even_or_odd2(num1): if num1 % 2 == 0: return 'even' else : return 'odd' result = even_or_odd2(2) print(result)
Editor Settings
Theme
Key bindings
Full width
Lines