C First Program

Prev Topic: C Introduction Next Topic: C Comments Writing your first C program is an exciting milestone for every beginner. The classic Hello World program is the traditional starting point, …

Read more

C Introduction

C is a general-purpose, procedural programming language that has had a profound impact on the software industry. Known for its speed, efficiency, and flexibility, C is widely used for system …

Read more

Python Turtle Program To Draw Of Spiral Using Square

Python Code import turtle as t pen = t.Turtle() pen.color(“cyan”) pen.speed(0) def draw_square(): for side in range(4): pen.forward(100) pen.right(90) for side in range(4): pen.forward(50) pen.right(90) pen.penup() pen.back(20) pen.pendown() for square …

Read more

Python Turtle Program To Draw Side Look Emoji

Python Code import turtle ink = turtle.Turtle() ink.color("#ffdd00") ink.begin_fill() ink.circle(100) ink.fillcolor("#ffdd00") ink.end_fill() ink.home() ink.goto(-40, 100) ink.color("#555555") ink.begin_fill() ink.circle(15) ink.color("#ffffff") ink.end_fill() ink.penup() ink.goto(-48, 110) ink.pendown() ink.color("Black") ink.begin_fill() ink.circle(5) ink.end_fill() ink.penup() ink.goto(40, …

Read more

Python Turtle Program To Draw Circle Mania

Python Code import turtle wn = turtle.Screen() wn.bgcolor('black') s = turtle.Turtle() s.speed('fastest') s.color('white') rotate = int(180) def Circles(t, size): for i in range(10): t.circle(size) size = size – 4 def …

Read more

Python Turtle Program To Create Bar Graph

Python Code import turtle def barGraph(var1, value): var1.begin_fill() var1.left(90) var1.forward(value) var1.write(" " + str(value)) var1.right(90) var1.forward(40) var1.right(90) var1.forward(value) var1.left(90) var1.end_fill() var1.forward(10) a = turtle.Screen() a.bgcolor("white") var1 = turtle.Turtle() var1.color("black", "light …

Read more

Python Turtle Program To Create Batman Logo

Python Code import turtle #initialize method bat = turtle.Turtle() #size of pointer and pen bat.turtlesize(1, 1, 1) bat.pensize(3) #screen info wn = turtle.Screen() wn.bgcolor(“grey”) wn.title(“BATMAN”) #colour bat.color(“yellow”, “black”) #begin filling …

Read more