Skip to content

Instantly share code, notes, and snippets.

Rn = 5 #resistance of load
E = float(input('Введите напряжение без нагрузки:'))
V = float(input('Введите напряжение с нагрузкой:'))
print(int((E/V - 1)*Rn * 1000), 'мОм')
import tkinter as tk
import random as r
WIDTH = 400
HEIGHT = 400
DIRECTIONS = ['Up', 'Down', 'Left', 'Right']
CELL_SIZE = 10 #size of pixel
DELAY = 100 #speed of game
root = tk.Tk()
root.title('Snake | Core: 0')