Ad
Code
Diff
  • import requests, json
    Greet=lambda:"".join(map(lambda x: json.loads(requests.get(x[0]).content)['text'][x[1]], [
        ("https://bible-api.com/2%20corinthians%2012:9", 0), 
        ("https://bible-api.com/john%203:16", 48),
        ("https://bible-api.com/romans%2012:1", 80),
        ("https://bible-api.com/1%20PETER%205:7", 10),
        ("https://bible-api.com/HEBREWS%2011:6", 149),
        ("https://bible-api.com/ISAIAH%2053:5", 3),
    ])) + "World"
    • Greet=lambda : "".join(map(chr,[x for x in (72,101,108,108,111,32,87,111,114,108,100) if isinstance(x,int)]))
    • import requests, json
    • Greet=lambda:"".join(map(lambda x: json.loads(requests.get(x[0]).content)['text'][x[1]], [
    • ("https://bible-api.com/2%20corinthians%2012:9", 0),
    • ("https://bible-api.com/john%203:16", 48),
    • ("https://bible-api.com/romans%2012:1", 80),
    • ("https://bible-api.com/1%20PETER%205:7", 10),
    • ("https://bible-api.com/HEBREWS%2011:6", 149),
    • ("https://bible-api.com/ISAIAH%2053:5", 3),
    • ])) + "World"
Code
Diff
  • def even_or_odd(n):
        return ('Even', 'Odd')[n % 2]
    • def even_or_odd(n):
    • return 'Odd' if n % 2 else 'Even'
    • return ('Even', 'Odd')[n % 2]
Code
Diff
  • def even_or_odd(n):
        if n == 0:
            return 'Even'
        if n == 1:
            return 'Odd'
        if n < 0:
            return even_or_odd(n+2)
        if n > 1:
            return even_or_odd(n-2)
    • def even_or_odd(n):
    • return 'Even' if n ^ 1 == n + 1 else 'Odd'
    • if n == 0:
    • return 'Even'
    • if n == 1:
    • return 'Odd'
    • if n < 0:
    • return even_or_odd(n+2)
    • if n > 1:
    • return even_or_odd(n-2)