ProgrammingwithSaurav
الذهاب إلى القناة على Telegram
I am helping you to learn programming I provide Short Notes of Programming Languages Join Our Group And Subscribe For Python Turtle Programs
إظهار المزيد6 784
المشتركون
+124 ساعات
-217 أيام
-11630 أيام
أرشيف المشاركات
Wanna shift from Non IT to IT
Top 100 participants will also get scholarships upto 30 lakhs
And learn from industry experts and free carrer guidance :
Register for free : Wanna shift from Non IT to IT
Top 100 participants will also get scholarships upto 30 lakhs
And learn from industry experts and free carrer guidance :
10 مارس 2024, 04:40
10 مارس 2024, ~04:40
Register for free : https://forms.gle/rfsvKz4zQAQuMNgcA
07 مارس 2024, 22:00
10 مارس 2024, ~04:40
Wanna shift from Non IT to IT
Top 100 participants will also get scholarships upto 30 lakhs
And learn from industry experts and free carrer guidance :
07 مارس 2024, 21:59
10 مارس 2024, ~04:40
Get you certificates now : https://forms.gle/CLcRSKRoyCd1WSF76
06 مارس 2024, 05:20
07 مارس 2024, ~21:57
import tkinter as tk
def button_click(symbol):
current = entry.get()
entry.delete(0, tk.END)
entry.insert(0, current + symbol)
def clear():
entry.delete(0, tk.END)
def calculate():
try:
result = eval(entry.get())
entry.delete(0, tk.END)
entry.insert(0, result)
except Exception as e:
entry.delete(0, tk.END)
entry.insert(0, "Error")
root = tk.Tk()
root.title("Simple Calculator")
entry = tk.Entry(root, width=30, borderwidth=5)
entry.grid(row=0, column=0, columnspan=4, padx=10, pady=10)
buttons = [
('7', 1, 0), ('8', 1, 1), ('9', 1, 2), ('/', 1, 3),
('4', 2, 0), ('5', 2, 1), ('6', 2, 2), ('*', 2, 3),
('1', 3, 0), ('2', 3, 1), ('3', 3, 2), ('-', 3, 3),
('0', 4, 0), ('.', 4, 1), ('=', 4, 2), ('+', 4, 3)
]
for (symbol, row, col) in buttons:
button = tk.Button(root, text=symbol, padx=20, pady=10, command=lambda sym=symbol: button_click(sym))
button.grid(row=row, column=col)
button_clear = tk.Button(root, text='C', padx=20, pady=10, command=clear)
button_clear.grid(row=5, column=0)
button_equal = tk.Button(root, text='=', padx=20, pady=10, command=calculate)
button_equal.grid(row=5, column=2)
root.mainloop()
03 مارس 2024, 13:08
Stuck in learning numerous Tech Stacks?😥
🧱Instead, focus on fundamentals: 𝗗𝗦𝗔 and 𝗦𝘆𝘀𝘁𝗲𝗺 𝗗𝗲𝘀𝗶𝗴𝗻 for core SDE roles with top product companies🔥
✅1500+ learners
✅35 LPA Average CTC | Highest 98 LPA
✅130% hike
📅 Round 3 Applications close on March 4, 2024 (Only 4 Seats remaining for March Cohort)
Enrol Today!
https://l.hych.in/saurav29
03 مارس 2024, 05:25
13 مارس 2024, ~00:01
Laptop i use and best discount : https://amzn.to/3wvHvMM
02 مارس 2024, 02:05
*"Nothing is more expensive than a missed opportunity"*
*So DO NOT MISS this one!!🫣*
*You can today get upto "100%" 🤩 Discount on Industrial Training+Certified Internship🦾🥇*
*Upskill Yourself NOW:* https://forms.gle/CLcRSKRoyCd1WSF76
01 مارس 2024, 08:22
16 مارس 2024, ~12:30
Register now for free : https://bit.ly/3OURnpK
28 فبراير 2024, 12:07
01 مارس 2024, ~08:22
from turtle import *
speed(13) # Painting speed control
bgcolor("#990000")
pensize(10)
penup()
goto(0,50)
pendown()
circle(-120)
penup()
circle(-120,-60)
pendown()
pensize(5)
right(50)
circle(70,55)
right(85)
circle(75,58)
right(90)
circle(70,55)
right(90)
circle(70,58)
# body
penup()
pensize(10)
goto(80,15)
pendown()
seth(92)
fd(135)
seth(125)
circle(30,135)
seth(190)
fd(50)
seth(125)
circle(30,135)
seth(275)
fd(90)
# Arm 1
penup()
pensize(10)
goto(92,-150)
seth(240)
pendown()
fd(80)
left(10)
circle(-28,185)
# Arm 2
penup()
goto(0,50)
seth(0)
pensize(10)
circle(-120,-60)
seth(200)
pendown()
fd(72)
left(20)
circle(30,150)
left(20)
fd(20)
right(15)
fd(10)
pensize(5)
fillcolor("#3366cc")
begin_fill()
seth(92)
circle(-120,31)
seth(200)
fd(45)
left(90)
fd(52)
end_fill()
fd(-12)
right(90)
fd(40)
penup()
right(90)
fd(18)
pendown()
right(86)
fd(40)
penup()
goto(-152,-86)
pendown()
left(40)
circle(35,90)
# Body coloring
penup()
goto(-80,116)
seth(10)
pensize(5)
pendown()
begin_fill()
fillcolor("#3366cc")
fd(155)
seth(-88)
fd(37)
seth(195)
fd(156)
end_fill()
penup()
goto(-75,38)
seth(15)
pendown()
begin_fill()
fd(158)
seth(-88)
fd(55)
seth(140)
circle(120,78)
end_fill()
# Arm 1 To color
penup()
fillcolor("#3366cc")
pensize(5)
goto(75,-170)
pendown()
begin_fill()
seth(240)
fd(30)
right(90)
fd(17)
end_fill()
fd(10)
left(80)
fd(55)
penup()
left(90)
fd(15)
pendown()
left(85)
fd(55)
penup()
goto(43,-225)
left(84)
pendown()
circle(60,51)
speed(0)
# Body vertical lines
for i in range(3):
penup()
goto(-70+i*15,135)
seth(-90)
pendown()
pensize(5)
fd(15-2*i)
for i in range(3):
penup()
goto(36 + i * 15, 156)
seth(-90)
pendown()
pensize(5)
fd(15 - 2 * i)
a = -60
b = 70
for i in range(4):
penup()
goto(a,b)
a=a+40
b=b+10
seth(-90)
pendown()
pensize(5)
fd(26)
def oo (li,jing):
penup()
goto(0,50)
seth(0)
circle(-120, li)
pendown()
right(jing)
pensize(5)
oo(-60,110)
fd(130)
oo(-28,96)
fd(140)
oo(9,89)
fd(144)
oo(42,70)
fd(160)
oo(80,60)
fd(130)
penup()
goto(-80,-40)
right(160)
pendown()
right(50)
circle(70,45)
right(75)
circle(70,38)
right(50)
circle(70,45)
right(90)
circle(70,48)
penup()
goto(-53,-70)
pendown()
left(40)
circle(70,30)
right(50)
circle(70,20)
right(50)
circle(70,38)
right(70)
circle(70,24)
penup()
goto(-19,-105)
left(72)
pendown()
fd(22)
right(60)
fd(22)
oo(-140,80)
circle(-90,120)
penup()
oo(140,100)
circle(90,13)
pendown()
right(-50)
circle(70,45)
right(75)
circle(70,38)
right(50)
circle(70,36)
penup()
goto(22,-185)
right(70)
pendown()
fd(72)
penup()
goto(-40,-182)
right(38)
pendown()
fd(70)
speed(10)
# The left eye
penup()
pensize(7)
goto(-15,-110)
seth(0)
pendown()
pensize(10)
begin_fill()
left(130)
fd(110)
right(250)
circle(90,60)
circle(40,120)
fillcolor("#F5FFFA")
end_fill()
# Right eye
penup()
goto(5,-110)
pendown()
begin_fill()
right(30)
fd(110)
right(-250)
circle(-90,60)
circle(-40,120)
end_fill()
done()
27 فبراير 2024, 03:48
Register now for free: https://forms.gle/CLcRSKRoyCd1WSF76
26 فبراير 2024, 12:42
28 فبراير 2024, ~22:46
