Python Online Compiler & Playground
HTML/CSS/JavaScript
HTML
CSS
Javascript
C++
C
PHP
Java
Python
Swift
C#
Ruby
Node.JS
Kotlin
jQuery
Go
R
TypeScript
Start Python Course
Register
Squares and Cubes
+3
Author: Ledio Deda
Dark
Public
Save
PY
py
1
2
3
4
5
6
#Squares and cubes
from math import *
for x in range(6, 10001, 6):
if(len(str(sqrt(x/2)))<=7):
if(len(str(pow(x/6, 1/3)))<=7):
print(x)
Enter to Rename, Shift+Enter to Preview
OUTPUT