In Python, what is 'self' in a class method?
Anonymous Quiz
25%
A variable that holds the class name
25%
A reference to the class itself
50%
A reference to the instance that calls the method
0%
A placeholder for future arguments
🔥1
What will this list comprehension produce:
[x**2 for x in range(5)]
[x**2 for x in range(5)]
Anonymous Quiz
0%
[0, 1, 2, 3, 4]
29%
[1, 4, 9, 16, 25]
57%
[0, 1, 4, 9, 16]
14%
[1, 2, 3, 4, 5]
🔥1
In OOP, what is the benefit of using encapsulation?
Anonymous Quiz
50%
Improved code organization
0%
Code reusability
50%
Enhanced code readability
0%
Increased system performance
🔥1
--- Do you like me Source Code ---
import tkinter as tk
import random
def show_popup():
popup = tk.Toplevel(root)
popup.title("Popup")
label = tk.Label(popup, text="Thanks for Accepting")
label.pack(padx=20, pady=20)
def move_button(event):
x = random.randint(0, 350)
y = random.randint(0, 350)
no_button.place(x=x, y=y)
root = tk.Tk()
root.title("instagram: @pythonlearnerr")
root.geometry("400x400")
question_label = tk.Label(root, text="Do you like me?")
question_label.pack(pady=20)
yes_button = tk.Button(root, text="Yes", command=show_popup)
yes_button.pack()
no_button = tk.Button(root, text="No")
no_button.pack()
no_button.bind("<Enter>", move_button)
root.mainloop()
import tkinter as tk
import random
def show_popup():
popup = tk.Toplevel(root)
popup.title("Popup")
label = tk.Label(popup, text="Thanks for Accepting")
label.pack(padx=20, pady=20)
def move_button(event):
x = random.randint(0, 350)
y = random.randint(0, 350)
no_button.place(x=x, y=y)
root = tk.Tk()
root.title("instagram: @pythonlearnerr")
root.geometry("400x400")
question_label = tk.Label(root, text="Do you like me?")
question_label.pack(pady=20)
yes_button = tk.Button(root, text="Yes", command=show_popup)
yes_button.pack()
no_button = tk.Button(root, text="No")
no_button.pack()
no_button.bind("<Enter>", move_button)
root.mainloop()
🔥1
This media is not supported in your browser
VIEW IN TELEGRAM
Thank you Everyone
For 800 subscribers 🥳
For 800 subscribers 🥳
🔥1
Best Deal Available only at 19999 rs 💥
Apply SBI Credit card and get it at 15500 rs 💥
Limited-time deal: Samsung Galaxy Tab S6 Lite 26.31 cm (10.4 inch), S-Pen in Box, Slim and Light, Dolby Atmos Sound, 4 GB RAM, 64 GB ROM, Wi-Fi Tablet, Gray Upto INR 5000 Bank Discount https://amzn.in/d/0vxUJI4
Apply SBI Credit card and get it at 15500 rs 💥
Limited-time deal: Samsung Galaxy Tab S6 Lite 26.31 cm (10.4 inch), S-Pen in Box, Slim and Light, Dolby Atmos Sound, 4 GB RAM, 64 GB ROM, Wi-Fi Tablet, Gray Upto INR 5000 Bank Discount https://amzn.in/d/0vxUJI4
Amazon
Samsung Galaxy Tab S6 Lite 26.31 Cm (10.4 Inch), S-Pen in Box, Slim and Light, Dolby Atmos Sound, 4 Gb Ram, 64 Gb ROM, Wi-Fi Tablet…
Samsung Galaxy S6 Lite Display: 26.31cm (10.4") display size| TFT display screen | 60Hz display | 16M colour support | Metal Uni-body | Slim and lightweight Galaxy S8 Tab Processor: Octa-Core processor type |Network/Bearer : 4G, Operating system: Android…
🔥1
Best offer available get It under 30000rs 💥
Apply SBI Credit card and get it at 28000rs only 💥
Limited-time deal: Apple iPad (10th generation): with A14 Bionic chip, 27.69 cm (10.9″) Liquid Retina display, 64GB, Wi-Fi 6, 12MP front/12MP back camera, Touch ID, all-day battery life – Blue https://amzn.in/d/1ZvQN24
Apply SBI Credit card and get it at 28000rs only 💥
Limited-time deal: Apple iPad (10th generation): with A14 Bionic chip, 27.69 cm (10.9″) Liquid Retina display, 64GB, Wi-Fi 6, 12MP front/12MP back camera, Touch ID, all-day battery life – Blue https://amzn.in/d/1ZvQN24
Amazon
Apple iPad (10th Generation): with A14 Bionic chip, 27.69 cm (10.9″) Liquid Retina Display, 64GB, Wi-Fi 6, 12MP front/12MP Back…
WHY IPAD — Colourfully reimagined and more versatile than ever, iPad is great for the things you do every day. With an all-screen design, 27.69 cm (10.9″) Liquid Retina display, powerful A14 Bionic chip, superfast Wi-Fi and four gorgeous colours, iPad delivers…
🔥1
Get Mac M1 At 66000 rs 💥
Apply SBI Credit card you will get it at 64000 rs only 💥
Limited-time deal: Apple MacBook Air Laptop M1 chip, 13.3-inch/33.74 cm Retina Display, 8GB RAM, 256GB SSD Storage, Backlit Keyboard, FaceTime HD Camera, Touch ID. Works with iPhone/iPad; Space Grey https://amzn.in/d/gFy0gTb
Apply SBI Credit card you will get it at 64000 rs only 💥
Limited-time deal: Apple MacBook Air Laptop M1 chip, 13.3-inch/33.74 cm Retina Display, 8GB RAM, 256GB SSD Storage, Backlit Keyboard, FaceTime HD Camera, Touch ID. Works with iPhone/iPad; Space Grey https://amzn.in/d/gFy0gTb
Amazon
Apple MacBook Air Laptop M1 chip, 13.3-inch/33.74 cm Retina Display, 8GB RAM, 256GB SSD Storage, Backlit Keyboard, FaceTime HD…
All-Day Battery Life – Go longer than ever with up to 18 hours of battery life. Powerful Performance – Take on everything from professional-quality editing to action-packed gaming with ease. The Apple M1 chip with an 8-core CPU delivers up to 3.5x faster…
🔥1

