---
title: "Discussion on \"Python Basic Code  Easy to Learn\" | Hashnode"
description: "Discussion on \"Python Basic Code  Easy to Learn\". 1) Area of a rectangle given its length and width:\n# Calculate the area of a rectangle\n# Hashnode format\n  area = length * width\n  return area\n# Get the length and width of the rectangle from the user.\nlength = float(input(\"Enter the length of the re..."
url: "https://hashnode.com/posts/python-basic-code-easy-to-learn/651c59d5fcad8c0534ebacc4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Python Basic Code Easy to Learn](https://aswini.hashnode.dev/python-basic-code-easy-to-learn?utm_source=hashnode&utm_medium=feed)

1) Area of a rectangle given its length and width: # Calculate the area of a rectangle # Hashnode format area = length \* width return area # Get the length and width of the rectangle from the user. length = float(input("Enter the length of the re...

Oct 3, 2023 · 2 min read · aswini.hashnode.dev  
Read the article

## Written by

[Aswini Gadde](https://hashnode.com/@Aswini346)

@Aswini346

  
[View profile](https://hashnode.com/@Aswini346)

## Responses

Comments are turned off for this post.
