Skip to content

Instantly share code, notes, and snippets.

@doyousketch2
Last active December 13, 2016 03:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doyousketch2/b152cbeb6f5b51636f64e5fa55d19813 to your computer and use it in GitHub Desktop.
Save doyousketch2/b152cbeb6f5b51636f64e5fa55d19813 to your computer and use it in GitHub Desktop.
Python test, as described by Pau Dubois.
#!/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