• Feed A Gator With Ducks And Create A Simple App Using TKinter

Hello, checkiomates🐱‍👤!

Try a video course about creating some basic application with Tkinter and find out in what order a gator eats ducks. Sounds funny, yeah?


On Easy difficulty, each of the few starting stations is dedicated to a distinct data type. If you want to discover all CheckiO features, visit our tutorial. It's a longread, but it's worth it!


Gator And Ducks by freeman_lex -

Suppose there are ducks floating on the pond in a circle. The pond is also home for alligator with a fondness for ducks. Beginning at a particular position (duck number 1) the alligator counts clockwise around the circle and eats every step-th duck (the circle closing as ducks are eaten). Write a script which returns the orders of consumption of the ducks given ducks, step.

gator(8, 4) == [5, 4, 6, 1, 3, 8, 7, 2]
gator(7, 11) == [7, 2, 3, 1, 5, 6, 4]
gator(3, 1) == [1, 2, 3]


Building a Python GUI Application With Tkinter -

Python has a lot of GUI frameworks, but Tkinter is the only framework that’s built into the Python standard library. It’s cross-platform, visual elements are rendered using native operating system elements, lightweight and relatively painless to use compared to other frameworks. This makes it a compelling choice for building GUI applications in Python, especially for applications where a modern sheen is unnecessary. In this video course you will start with some simple applications.


This one is longer, but simple. How do you think, what the following code does?

from math import pi, sqrt

def ????????(*args):
    match len(args):
        case 1:
            res = pi * args[0] **2 /4
        case 2:
            res = args[0] * args[1]
        case 3:
            a, b, c = args
            res = sqrt((a + b + c)*(a + b - c)*(a + c - b)*(b + c - a))/4
    return round(res, 2)

🙌 Thanks for your attention! Hope to meet you at CheckiO, as well as at our Instagram and Twitter! We are really interested in your thoughts! Please, leave a comment below! ⤵

Welcome to CheckiO - games for coders where you can improve your codings skills.

The main idea behind these games is to give you the opportunity to learn by exchanging experience with the rest of the community. Every day we are trying to find interesting solutions for you to help you become a better coder.

Join the Game