Top 150 Core Java Interveiw Questions and Answers (1).pdf
111.6 KB
Important Java Interview Questions with Answers ✅
👍52❤17🔥9
Top 50 python Interview Questions and answers (1).pdf
259.7 KB
👍67❤20🔥11🤩9💯6⚡1
What is the order of precedence in python?
Anonymous Quiz
27%
Exponential, Parentheses, Multiplication, Division, Addition, Subtraction
27%
Exponential, Parentheses, Division, Multiplication, Addition, Subtraction
21%
Parentheses, Exponential, Multiplication, Division, Subtraction, Addition
25%
Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
👍121❤54🔥22💯16⚡11🤩5
Which of the following is a Python tuple?
Anonymous Quiz
47%
( 1,2,3 )
29%
{ 1,2,3 }
8%
{ }
15%
[ 1,2,3 ]
👍218❤47💯24🔥23🤩19⚡7
Create Graphical User Interfaces with Python.pdf
11.3 MB
GUI Programming with Python 💻📑
👍116❤27🔥15🤩15💯1
👍222🔥40❤36💯18⚡15🤩13
👍198💯38❤33🔥18🤩16⚡7
SIMPLE_MARIO_GAME_IN_PYTHON_WITH_SOURCE_CODE (2).zip
15.1 MB
Mario Game Source Code 💻
👍107❤27🔥20⚡18🤩9
--- Do you love 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: @pythonnotes1")
root.geometry("400x400")
question_label = tk.Label(root, text="Do you love 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: @pythonnotes1")
root.geometry("400x400")
question_label = tk.Label(root, text="Do you love 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()
👍149❤40🔥8🤩6⚡4
---- Rose Source Code ----
import turtle
def draw_flower():
turtle.penup()
turtle.left(90)
turtle.fd(200)
turtle.pendown()
turtle.right(90)
# Flower base
# by : @pythonnotes1
turtle.fillcolor("red")
turtle.begin_fill()
turtle.circle(10, 180)
turtle.circle(25, 110)
turtle.left(50)
turtle.circle(60, 45)
turtle.circle(20, 170)
turtle.right(24)
turtle.fd(30)
turtle.left(10)
turtle.circle(30, 110)
turtle.fd(20)
turtle.left(40)
turtle.circle(90, 70)
turtle.circle(30, 150)
turtle.right(30)
turtle.fd(15)
turtle.circle(80, 90)
turtle.left(15)
turtle.fd(45)
turtle.right(165)
turtle.fd(20)
turtle.left(155)
turtle.circle(150, 80)
turtle.left(50)
turtle.circle(150, 90)
turtle.end_fill()
# Petal 1
turtle.left(150)
turtle.circle(-90, 70)
turtle.left(20)
turtle.circle(75, 105)
turtle.setheading(60)
turtle.circle(80, 98)
turtle.circle(-90, 40)
# Petal 2
turtle.left(180)
turtle.circle(90, 40)
turtle.circle(-80, 98)
turtle.setheading(-83)
# Leaves 1
turtle.fd(30)
turtle.left(90)
turtle.fd(25)
turtle.left(45)
turtle.fillcolor("green")
turtle.begin_fill()
turtle.circle(-80, 90)
turtle.right(90)
turtle.circle(-80, 90)
turtle.end_fill()
turtle.right(135)
turtle.fd(60)
turtle.left(180)
turtle.fd(85)
turtle.left(90)
turtle.fd(80)
# Leaves 2
turtle.right(90)
turtle.right(45)
turtle.fillcolor("green")
turtle.begin_fill()
turtle.circle(80, 90)
turtle.left(90)
turtle.circle(80, 90)
turtle.end_fill()
turtle.left(135)
turtle.fd(60)
turtle.left(180)
turtle.fd(60)
turtle.right(90)
turtle.circle(200, 60)
turtle.done()
# Call the function to draw the flower
draw_flower()
import turtle
def draw_flower():
turtle.penup()
turtle.left(90)
turtle.fd(200)
turtle.pendown()
turtle.right(90)
# Flower base
# by : @pythonnotes1
turtle.fillcolor("red")
turtle.begin_fill()
turtle.circle(10, 180)
turtle.circle(25, 110)
turtle.left(50)
turtle.circle(60, 45)
turtle.circle(20, 170)
turtle.right(24)
turtle.fd(30)
turtle.left(10)
turtle.circle(30, 110)
turtle.fd(20)
turtle.left(40)
turtle.circle(90, 70)
turtle.circle(30, 150)
turtle.right(30)
turtle.fd(15)
turtle.circle(80, 90)
turtle.left(15)
turtle.fd(45)
turtle.right(165)
turtle.fd(20)
turtle.left(155)
turtle.circle(150, 80)
turtle.left(50)
turtle.circle(150, 90)
turtle.end_fill()
# Petal 1
turtle.left(150)
turtle.circle(-90, 70)
turtle.left(20)
turtle.circle(75, 105)
turtle.setheading(60)
turtle.circle(80, 98)
turtle.circle(-90, 40)
# Petal 2
turtle.left(180)
turtle.circle(90, 40)
turtle.circle(-80, 98)
turtle.setheading(-83)
# Leaves 1
turtle.fd(30)
turtle.left(90)
turtle.fd(25)
turtle.left(45)
turtle.fillcolor("green")
turtle.begin_fill()
turtle.circle(-80, 90)
turtle.right(90)
turtle.circle(-80, 90)
turtle.end_fill()
turtle.right(135)
turtle.fd(60)
turtle.left(180)
turtle.fd(85)
turtle.left(90)
turtle.fd(80)
# Leaves 2
turtle.right(90)
turtle.right(45)
turtle.fillcolor("green")
turtle.begin_fill()
turtle.circle(80, 90)
turtle.left(90)
turtle.circle(80, 90)
turtle.end_fill()
turtle.left(135)
turtle.fd(60)
turtle.left(180)
turtle.fd(60)
turtle.right(90)
turtle.circle(200, 60)
turtle.done()
# Call the function to draw the flower
draw_flower()
👍126❤26🤩9🔥8💯4