This file contains hidden or 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
| Rn = 5 #resistance of load | |
| E = float(input('Введите напряжение без нагрузки:')) | |
| V = float(input('Введите напряжение с нагрузкой:')) | |
| print(int((E/V - 1)*Rn * 1000), 'мОм') |
This file contains hidden or 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
| 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') |