SortedCoding
1.2K subscribers
185 photos
38 videos
194 files
140 links
Learn to code with clarity and precision
Download Telegram
๐Ÿ”ฅ1
What will this list comprehension produce:

[x**2 for x in range(5)]
Anonymous Quiz
0%
[0, 1, 2, 3, 4]
17%
[1, 4, 9, 16, 25]
83%
[0, 1, 4, 9, 16]
0%
[1, 2, 3, 4, 5]
๐Ÿ”ฅ1
๐Ÿ”ฅ1
How is a lambda function different from a regular function defined using def in Python?
Anonymous Quiz
60%
Lambda can only have one expression
0%
Lambda can return multiple values
20%
Lambda functions are faster
20%
Lambda functions can't have arguments
๐Ÿ”ฅ1
What is the output of the following lambda expression?

(lambda x, y: x * y)(3, 4)
Anonymous Quiz
17%
7
67%
12
0%
0
17%
Error
๐Ÿ”ฅ1
What will this list comprehension produce:

[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
๐Ÿ”ฅ1
CSS Interview questions ๐Ÿš€.pdf
1.1 MB
Short notes PDF for the revision ๐Ÿ’ฅ
๐Ÿ”ฅ1
Forwarded from Hindi FHD Series
Media is too big
VIEW IN TELEGRAM
Mirzapur (2024) 720p HEVC HDRip Hindi S03[E01-05] Complete x265 AAC 2.0 ESub.mkv

๐Ÿ’ฅ @Hindi_FHD_Movies
๐Ÿ”ฅ1
Forwarded from Hindi FHD Series
Media is too big
VIEW IN TELEGRAM
Mirzapur (2024) 720p HEVC HDRip Hindi S03[E06-10] Complete x265 AAC 2.0 ESub.mkv

๐Ÿ’ฅ @Hindi_FHD_Movies
๐Ÿ”ฅ1
Channel photo removed
Channel photo updated
Channel name was changed to ยซSnake.codingยป
Channel photo updated
Channel name was changed to ยซSortedCodingยป
--- 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()
๐Ÿ”ฅ1