Skip to content

CSE-SJCET/Turtle_home

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐒 Turtle Graphics Assignment – First Year Beginners

🎯 Objective

Learn basic Python functions, loops, and Turtle graphics by drawing a simple house.


πŸ“Œ Task

You must complete the following functions in main.py:

  1. draw_square(t, side)
  2. draw_triangle(t, side)
  3. draw_house(t)

🏠 What Your Program Should Draw

A simple house consisting of:

  • A square (base)
  • A triangle (roof)

πŸ“š Rules

  • Do NOT rename the functions.
  • Do NOT remove the function definitions.
  • Use loops (for loop recommended).
  • Use correct angles:
    • Square β†’ 90 degrees
    • Triangle β†’ 120 degrees
  • Call turtle.done() only at the end of the program.

πŸ§ͺ Grading Criteria

Component Marks
Function definitions 20
Square logic correct 30
Triangle logic correct 30
House structure 20

Total: 100 Marks


πŸš€ How to Run

python main.py

πŸ’‘ Hint

  • A square has 4 sides and turns 90 degrees.
  • An equilateral triangle has 3 sides and turns 120 degrees.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages