from tkinter import *
def click1():
lbl.configure(text="Вы нажали кнопку 1", font=("",20),bg="cyan2")
window["bg"] = "cyan2"
def click2():
lbl.configure(text="Вы нажали кнопку 2", font=("",20),bg="yellow")
window["bg"] = "yellow"
window = Tk()
window.resizable(False,False)
window.title("ПР_14: ФИО")
window.geometry('600x400')
lbl = Label(window, text="", font=("", 50))
btn = Button(window, text="Кнопка 1", command=click1)
btn.grid(column=1, row=0)
lbl.grid(column="5",row="0")
btn = Button(window, text="Кнопка 2", command=click2)
btn.grid(column=3, row=5)
window.mainloop()
Объяснение:
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.
var
s,n,i:integer;
begin
write('Введите количество чисел');
readln(n);
s:=0;
for i:=1 to n do
s:=s+i*3;
writeln(s);
end.