@valoro/

ajedrez_trigo_1

Python

http://altocodigo.blogspot.com/2018/09/progresion-geometrica-en-python.html

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.21005541272245032","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"cz0wCmZvciBpIGluIHJhbmdlKDgqOCk6CiAgcys9MioqaQogIHByaW50KGkrMSwyKippLHMpCnByaW50KCJFbiBub3RhY2nDs24gY2llbnTDrWZpY2EgZXMgJWUsXG4geSBlbCB0b3RhbCBlczogJUUgZ3Jhbm9zIGRlIHRyaWdvLiIgJSAoMioqaSxzKSk="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
s=0
for i in range(8*8):
  s+=2**i
  print(i+1,2**i,s)
print("En notación científica es %e,\n y el total es: %E granos de trigo." % (2**i,s))