from random import randint
import pygame
POINTS = [(randint(20, 400), randint(20, 300)) for _ in range(int(input()))]
WHITE = (255, 255, 255)
def draw(scr, points):
for i in range(len(points) - 1):
pygame.draw.line(scr, WHITE, points[i], points[i + 1], 1)
pygame.init()
size = 400, 300
pygame.display.set_caption('title')
screen = pygame.display.set_mode(size)
run = True
while run:
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
screen.fill((0, 0, 0))
draw(screen, POINTS)
pygame.display.flip()
pygame.quit()
Можно так, но библиотеку pygame надо устанавливать из командой строки, или среды разработки которую вы используете
Объяснение:
No or not?
Grammar > Easily confused words > No or not?
из English Grammar Today
No and not are the two most common words we use to indicate negation. We use no before a noun phrase:
There’s no address on the envelope.
[parent to child]
No biscuits before dinner!
No decisions have been made.
We use not with any other phrase or clause:
It’s not often that you stop and think about the way you breathe.
Not suitable for children under 15.
Not surprisingly, it was a tense match but eventually the more experienced Australians won.
A:
Do you go cycling all year round?
B:
Not in the winter.