Skip to main content
3 of 7
added 146 characters in body
Caridorc
  • 27.6k
  • 7
  • 54
  • 135
from turtle import *
import time
from random import *
from tkinter import *

Please do not use import *, instead use import long_long_name as short


crtanje2(x, y) and crtanje(br, boja) are 50 lines long. Divide them in smaller functions.


Remove the following because it is never used.

def mj(x, y):
    return x, y

global pon
global m
global klik
global tocnih

Do not use globals, instead pass the variables you need to the function as parametre.


Here code written in the English language is the most welcome, yours isn't, please consider translating your function names to English.


pu()
lt(90)
fd(37.5)
lt(90)
fd(25)
rt(180)
pd()

Your code uses a great deal of two letters name, longer names are generally preferred.

Caridorc
  • 27.6k
  • 7
  • 54
  • 135