
- Python Basic Tutorial
- Python - Home
- Python - Overview
- Python - Environment Setup
- Python - Basic Syntax
- Python - Comments
- Python - Variables
- Python - Data Types
- Python - Operators
- Python - Decision Making
- Python - Loops
- Python - Numbers
- Python - Strings
- Python - Lists
- Python - Tuples
- Python - Dictionary
- Python - Date & Time
- Python - Functions
- Python - Modules
- Python - Files I/O
- Python - Exceptions
Python Program to calculate the area of a Tetrahedron
In this article, we will learn about the solution and approach to solve the given problem statement.
Problem statement −Given the side of a tetrahedron, we need to find a tetrahedron.
A Tetrahedron is a geometric figure which looks like a pyramid with a triangular base. It is a solid object with four triangular faces, three on the sides, one on the bottom of the base and four vertices or corners.
Here we frame an area function as shown below −
Example
import math def areatetrahedron(side): return (math.sqrt(3) * (side * side)) # Driver Code side = 20 print("Area of Tetrahedron = ", area_of_tetrahedron(side))
Output
Area of Tetrahedron = 692.8203230275509
All variables and functions are declared in global scope as shown in the figure below.
Conclusion
In this article, we learned about the approach to find whether it is possible to make a divisible by 3 numbers using all digits in an array.
- Related Articles
- Program to calculate the area of a Tetrahedron
- Java Program to calculate area of a Tetrahedron
- Program to calculate area and volume of a Tetrahedron
- Python Program to calculate the area of Cube
- Python Program to calculate the area of the rhombus
- Python Program to calculate the volume and area of Cone
- Python Program to calculate the volume and area of Sphere
- Python Program to calculate the volume and area of the Cylinder
- Golang program to calculate the area of a cube
- Program to calculate area of Enneagon
- Program to calculate Area Of Octagon
- Swift Program to calculate the area of Cube
- Haskell Program to calculate the area of Cube
- Swift Program to Calculate the Area of Enneagon
- How to Calculate the Area of a Triangle using Python?

Advertisements