Last active
December 13, 2016 03:56
-
-
Save doyousketch2/b152cbeb6f5b51636f64e5fa55d19813 to your computer and use it in GitHub Desktop.
Python test, as described by Pau Dubois.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
##========================================================================= | |
"""Python is the most powerful language you can still read. – Pau Dubois""" | |
## | |
## Python test, as described by Pau Dubois. | |
## programmed by Eli Innis - 12 Dec, 2016 | |
## GNU GPLv3 - gnu.org/licenses/gpl-3.0.txt | |
## git.io/v1Pvn | |
##----------------------------------------- | |
import easygui as eg | |
language = 'unknown...' | |
reading_level = 0 | |
your_knowledge = eg .boolbox('Can you read this?', 'Python test') | |
if your_knowledge > reading_level: ## check if you can read it. | |
power = eg .buttonbox('language?', choices = ('weak', 'mediocre', 'decent', 'OK', 'strong', 'powerful', 'most powerful')) | |
if power == 'most powerful': ## check programming level | |
continued_knowledge = eg .boolbox('Can you still read this?') | |
if continued_knowledge > reading_level: ## check if you can still read it. | |
language = 'Python' | |
eg .msgbox(msg = 'Your language is: ' + language) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment