Python 游戏人生

1、CheckiO

网站 CheckiO
CheckiO 是基于 Web 的 Python 学习资源,您的任务是通过玩游戏和解决测试测验来学习。

CheckiO 拥有自己的功能,它是基于 Web 的完整开发环境,借助 Checkio Chrome Extension 和 Chrome 应用程序,您可以将桌面 IDE 绑定到 CheckiO 帐户,并在任何地方进行编码! (注意:您必须同时安装扩展程序和应用程序)

源代码:https://github.com/CheckiO/checkio-web-plugin

您将需要安装 CheckiO Client pip3 install checkio_client

您在本地编辑器中应用的所有更改都会立即显示在 CheckiO 编辑器中。

您可以在这里阅读有关如何配置插件的更多信息https://py.checkio.org/blog/new-tool-checkio-client/

Is Even

Check if the given number is even or not. Your function should return True if the number is even, and False if the number is odd.

Input: An int.
Output: A bool.
Example:

is_even(2) == True
is_even(5) == False
is_even(0) == True
1
2
3

How it’s used: (math is used everywhere)

def is_even(num: int) -> bool:
    return not num & 1
 
if __name__ == '__main__':
    print("Example:")
    print(is_even(2))

    # These "asserts" are used for self-checking and not for an auto-testing
    assert is_even(2) == True
    assert is_even(5) == False
    assert is_even(0) == True
    print("Coding complete? Click 'Check' to earn cool rewards!")

2、Coding Games

https://www.education.com/

3、Code Combat

https://koudashijie.com/

4、Cycler DoJo home

网址:http://www.cyber-dojo.org/

你以为我在玩游戏,其实我在学编程!

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
THE END
分享
二维码
< <上一篇
下一篇>>