PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
'''
⚠️⚠️⚠️
Enter the amount of energy to create
the civilization
'''
import math
def kardashev(P):
K = (math.log10(P)-6)/10
return K
energy = float(input("Enter the amount of energy(W) : "))
print(f"\n\n Your Civilization")
print(f"\nAmount of energy used : {energy} W")
print(f"Kardashev scale : {kardashev(energy):.2f}\n")
print(f" Kardashev Scale \n")
print("The Kardashev scale is a method of measuring a civilization's level of technological advancement based on its ability to harness energy. It's divided into types: Type I can use all the energy available on its planet, Type II can use all the energy of its star, and Type III can use all the energy in its galaxy.\n")
print(f"Our Current Kardashev scale : {kardashev(10**13.276)} ")
print(f"Amount of energy we used : 10^13.276 W")
print(f"\nAmount of energy used by Type 1 civillization : 10^16 W")
print(f"\nAmount of energy used by Type 2 civillization : 10^26 W")
print(f"\nAmount of energy used by Type 3 civillization : 10^36 W ")
import numpy as np
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run