Get Mystery Box with random crypto!

PythonNotes

Logo saluran telegram pythonnotes1 — PythonNotes P
Logo saluran telegram pythonnotes1 — PythonNotes
Alamat saluran: @pythonnotes1
Kategori: Tidak terkategori
Bahasa: Bahasa Indonesia
Pelanggan: 108.08K
Deskripsi dari saluran

Best Place for Learning Python Programming
Free Notes of Programming languages 👇
• Python • Java • JavaScript
• C • C
Free Courses & Job Updates ☑️🔎🆓

Ratings & Reviews

4.00

2 reviews

Reviews can be left only by registered users. All reviews are moderated by admins.

5 stars

1

4 stars

0

3 stars

1

2 stars

0

1 stars

0


Pesan-pesan terbaru

2024-04-27 08:13:08 FREE PYTHON TRAINING


Free Python Programming Online Training is starting from 29th April


Python is High in Demand Programming language with High Salary Package


Don't miss this Opportunity

Complete Python Programming

Learn from Scratch

Practical learning by Expert

Free of cost Training

Click here, Register Free

https://forms.gle/aTAH1gdYqwzQFjv58


Free for First 1000 People
16.9K viewsedited  05:13
Buka / Bagaimana
2024-04-03 19:23:46 Handwritten Notes
17.3K viewsedited  16:23
Buka / Bagaimana
2024-02-28 19:40:39 LEGEND Form Project
-----------------------------------------------------
Complete Source Code
-----------------------------------------------------








Legend form


Enter Id



Enter Confirm Pass












14.4K views16:40
Buka / Bagaimana
2024-02-22 11:16:08 Snake Game using Turtle in Python Source Code

# import required modules
import turtle
import time
import random

delay = 0.1
score = 0
high_score = 0


# Creating a window screen
wn = turtle.Screen()
wn.title("Snake Game")
wn.bgcolor("blue")
# the width and height can be put as user's choice
wn.setup(width=600, height=600)
wn.tracer(0)

# head of the snake
head = turtle.Turtle()
head.shape("square")
head.color("white")
head.penup()
head.goto(0, 0)
head.direction = "Stop"

# food in the game
food = turtle.Turtle()
colors = random.choice(['red', 'green', 'black'])
shapes = random.choice(['square', 'triangle', 'circle'])
food.speed(0)
food.shape(shapes)
food.color(colors)
food.penup()
food.goto(0, 100)

pen = turtle.Turtle()
pen.speed(0)
pen.shape("square")
pen.color("white")
pen.penup()
pen.hideturtle()
pen.goto(0, 250)
pen.write("Score : 0  High Score : 0", align="center",
          font=("candara", 24, "bold"))


# assigning key directions
def group():
    if head.direction != "down":
        head.direction = "up"


def godown():
    if head.direction != "up":
        head.direction = "down"


def goleft():
    if head.direction != "right":
        head.direction = "left"


def goright():
    if head.direction != "left":
        head.direction = "right"


def move():
    if head.direction == "up":
        y = head.ycor()
        head.sety(y+20)
    if head.direction == "down":
        y = head.ycor()
        head.sety(y-20)
    if head.direction == "left":
        x = head.xcor()
        head.setx(x-20)
    if head.direction == "right":
        x = head.xcor()
        head.setx(x+20)


wn.listen()
wn.onkeypress(group, "w")
wn.onkeypress(godown, "s")
wn.onkeypress(goleft, "a")
wn.onkeypress(goright, "d")

segments = []

# By - @pythonnotes1
# Main Gameplay
while True:
    wn.update()
    if head.xcor() > 290 or head.xcor() < -290 or head.ycor() > 290 or head.ycor() < -290:
        time.sleep(1)
        head.goto(0, 0)
        head.direction = "Stop"
        colors = random.choice(['red', 'blue', 'green'])
        shapes = random.choice(['square', 'circle'])
        for segment in segments:
            segment.goto(1000, 1000)
        segments.clear()
        score = 0
        delay = 0.1
        pen.clear()
        pen.write("Score : {} High Score : {} ".format(
            score, high_score), align="center", font=("candara", 24, "bold"))
    if head.distance(food) < 20:
        x = random.randint(-270, 270)
        y = random.randint(-270, 270)
        food.goto(x, y)

        # Adding segment
        new_segment = turtle.Turtle()
        new_segment.speed(0)
        new_segment.shape("square")
        new_segment.color("orange")  # tail colour
        new_segment.penup()
        segments.append(new_segment)
        delay -= 0.001
        score += 10
        if score > high_score:
            high_score = score
        pen.clear()
        pen.write("Score : {} High Score : {} ".format(
            score, high_score), align="center", font=("candara", 24, "bold"))
    # Checking for head collisions with body segments
    for index in range(len(segments)-1, 0, -1):
        x = segments[index-1].xcor()
        y = segments[index-1].ycor()
        segments[index].goto(x, y)
    if len(segments) > 0:
        x = head.xcor()
        y = head.ycor()
        segments[0].goto(x, y)
    move()
    for segment in segments:
        if segment.distance(head) < 20:
            time.sleep(1)
            head.goto(0, 0)
            head.direction = "stop"
            colors = random.choice(['red', 'blue', 'green'])
            shapes = random.choice(['square', 'circle'])
            for segment in segments:
                segment.goto(1000, 1000)
            segments.clear()

            score = 0
            delay = 0.1
            pen.clear()
            pen.write("Score : {} High Score : {} ".format(
                score, high_score), align="center", font=("candara", 24, "bold"))
    time.sleep(delay)

wn.mainloop()
25.7K views08:16
Buka / Bagaimana
2024-02-18 07:49:13
Code of this Project

https://technewsidea.com/animated-login-form-using-html-css-javascript/
22.8K views04:49
Buka / Bagaimana
2024-02-11 08:07:22 ---- 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()
36.3K viewsedited  05:07
Buka / Bagaimana
2024-02-09 09:30:37 --- 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("", move_button)

root.mainloop()
36.5K views06:30
Buka / Bagaimana
2023-12-23 09:44:58
We are giving Free Training of Courses like :

• Python Programming
• Full Stack Development
• Java, C++, C
• Web Development
• Ethical Hacking
• Data Science
• Android development


Internship Certification to everyone

Click here, Register Free

https://bit.ly/PYC_CodeRush_Dec


14.4K views06:44
Buka / Bagaimana
2023-12-21 17:33:54 Mario Game Source Code
18.0K viewsedited  14:33
Buka / Bagaimana
2023-11-24 16:42:38 --- BREAKING NEWS ---

We are giving Free Training of Courses like :

Python Programming
Full Stack Development
Java, C++, C
Web Development
Basics of Programming
Data Science
Android development

You'll learn Everything & Get Job Opportunities also

Certification to everyone 

Click here, Register Free

https://bit.ly/SK_CodeRush_Nov

Join Courses by Registering in Coding Contest

17.3K viewsedited  13:42
Buka / Bagaimana