Skip to main content

Posts

Showing posts from July 18, 2021

Python Turtle Graphics Code 14

 Input: Output:

Python Turtle Graphics Code 13

 Input: Output:

Python Turtle Graphics Code 12

 Input:   Output:

Python Turtle Graphics Code 11

  Input: #import required libraries import turtle import random import time #setup the screen screen=turtle.Screen() screen.bgcolor("red") screen.setup(800, 600) #define and intialise all required variables to control the game mike_steps = 0 tom_steps = 0 FINISH_LINE = 360 chance = 0 step_set = [10, 20, 30, 40, 50, 60] steps=0 countdown=10 bet="TOM" #set assistant turtle to draw finish line mypen = turtle.Turtle() mypen.hideturtle() mypen.pencolor("yellow") #set assistant counter_turtle counter_turtle = turtle.Turtle() counter_turtle.hideturtle() counter_turtle.pencolor("white") counter_turtle.penup() counter_turtle.setpos(-150,50) counter_turtle.pendown() #display information about the game about_game = "Tom and Mike are the two turtles\nto race to the finish line.\nLet us see who wins!\nBy: Tejasvi Vashishtha" counter_turtle.write(about_game,font=("arial", 20, "bold")) counter_turtle.penup() time.sleep(5.0) #draw t...

Python Turtle Graphics Code 10

 Input: Output:

Python Turtle Graphics Code 9

 Input: Output:

Python Turtle Graphics Code 8

 Input: Output:

Python Turtle Graphics Code 7

 Input: Output:

Python Turtle Graphics Code 6

 Input: Output:

Python Turtle Graphics Code 5

 Input: Output:

Python Turtle Graphics Code 4

 Input: Output:

Python Turtle Graphics Code 3

 Input: Output:

Python Turtle Graphics Code 2

 Input: Output:

Python Turtle Graphics Code 1

 Input: Output:

London-Sized Iceberg Breaks Off The Brunt Ice Shelf In Antarctica

  Avast iceberg almost the size of Greater London has broken away from the Antarctic ice shelf near a British research station, the British Antarctic Survery (BAC) said on February 26. Scientists had been expecting the iceberg to break loose for a while. Cracks have been appearing in the Brunt Ice Shelf for years, but the movements of ice is complex and often unpredictable, so the BAS has been keeping a close eye on developments and erring on the side of caution. It's not yet clear whether the iceberg will remain in the area or float away.