Posts

Create your own Wikipedia

Image
  Create your own Wikipedia with Python Code: ###made by MAnas import requests from bs4 import BeautifulSoup import html import tkinter as tk from tkinter import Label, Entry, Button, Scrollbar, Text, Listbox, END, messagebox def search_wikipedia(event=None):  # Accept an event argument     search_query = entry.get()          # Define the Wikipedia API URL for search     api_url = "https://en.wikipedia.org/w/api.php"          # Set the parameters for the API search request     search_params = {         "action": "query",         "format": "json",         "list": "search",         "srsearch": search_query,     }          # Send a request to the Wikipedia API for search results     response = requests.get(api_url, params=search_params)          # ...

Draw Black Panther In Pytho Turtle

Image
 Draw Black Panther In Python Turtle import turtle as t t.bgcolor("#eeeeee") t.speed(8) t.width(4) t.penup() t.lt(90) t.fd(100) t.lt(87) t.pendown() t.color('black') t.begin_fill() t.circle(180,30) t.rt(70) t.fd(30) t.circle(5,150) t.fd(40) t.circle(-60,30) t.fd(10) t.circle(60,30) t.rt(10) t.fd(40) t.circle(190,40) t.circle(70,90) t.circle(190,40) t.fd(40) t.rt(10) t.circle(60,30) t.fd(10) t.circle(-60,30) t.fd(40) t.circle(5,150) t.fd(30) t.rt(70) t.circle(180,30) t.end_fill() t.color('sky blue') t.rt(5) t.circle(180,25) t.circle(15,75) t.fd(40) t.circle(15,55) t.fd(60) t.rt(70) t.fd(10) t.rt(45) t.fd(10) t.rt(85) t.circle(80,50) t.lt(45) t.fd(10) t.lt (80) t.fd(30) t.circle(40,50) t.fd(10) t.rt(60) t.fd(30) t.lt(100) t.circle(-37,80) t.lt(100) t.fd(30) t.rt(60) t.fd(10) t.circle(40,50) t.fd(30) t.lt(80) t.fd(10) t.lt (45) t.circle(80,50) t.rt(85) t.fd(10) t.rt(45) t.fd(10) t.rt(70) t.fd(60) t.circle(15,55) t.fd(40) t.circle(15,75) t.circle(180,30) t.p...

Draw Naruto Face Using Python

Image
 Draw Naruto Face Using Python Turtle import turtle turtle.Screen().bgcolor("#eeeeee") draw = turtle.Turtle() draw.pencolor("red") draw.pensize(8) draw.hideturtle() turtle.tracer(5) draw.pencolor('black') draw.left(13) draw.speed(8) draw.fillcolor("yellow") draw.begin_fill() draw.penup() draw.forward(190) draw.pendown() # Hair draw.right(25) draw.forward(60) draw.left(135) draw.forward(100) draw.right(95) draw.forward(95) draw.left(135) draw.forward(110) draw.right(105) draw.forward(115) draw.left(135) draw.forward(145) draw.right(112) draw.forward(115) draw.left(137) draw.forward(163) draw.right(110) draw.forward(115) draw.left(130) draw.forward(142) draw.right(85) draw.forward(120) draw.left(130) draw.forward(128) draw.right(100) draw.forward(110) draw.left(126) draw.forward(115) draw.right(73) draw.forward(82) draw.left(136) draw.forward(60) draw.pensize(3) draw.left(70) draw.forward(15) draw.right(59) def curve1(a,d):     for i in range(d...

Make Star On Pydroid 3 Using Python

Image
 Make Star On Pydroid 3 Using Python import turtle  turtle.bgcolor("black") t=turtle.Turtle() t.pencolor ('cyan') ;;t.rt(144) t.fd(200) t.rt(144) t.fd(200) t.rt(144) t.fd(200) t.rt(144) t.fd(200) t.rt(144) t.fd(200)

How to Make Quiz Game In Pydroid 3

Image
 Quiz Game In Pydroid 3 def check_guess(guess, answer):     global score     still_guessing = True     attempt = 0     while still_guessing and attempt < 3:         if guess.lower() == answer.lower():             print("Correct Answer")             score = score + 1             still_guessing = False         else:             if attempt < 2:                 guess = input("Sorry Wrong Answer, try again")             attempt = attempt + 1     if attempt == 3:         print("The Correct answer is ",answer )      score = 0 print("Guess the Animal") guess1 = input("Which bear lives at the North Pole? ") check_guess(guess1, "polar bear") guess2 = input("Which is the ...

Draw Tony Stark Face Using Python Turtle

Image
  Draw Tony Stark Face Using Python Turtle # Importing sketchpy module # to install skectpy : pip install sketchpy from sketchpy import library as lib #creating object of rdj() obj = lib.rdj() # Callling Draw method obj.draw() Output: Youtube:

Make Unique Design Using Pydroid 3

Image
Unique design using turtle on pydroid 3 Import turtle turtle.bgcolor ('black') t=turtle.Turtle () t.pencolor ('teal') t.speed (200) t.pensize (2) for i in range (500):     t.fd (i)     t.rt (144)     t.fd (i)     t.rt (50) Output: Watch video on youtube:

Popular posts from this blog

Python Code To Make Flappybird Game

Draw Naruto Face Using Python

How to Make Quiz Game In Pydroid 3