@valoro/

ajedrez_trigo_2

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.7993100710990055","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aT0wCnM9MAp3aGlsZSBpPDY0OgogIHMrPTIqKmkKICBwcmludChpKzEsMioqaSxzKQogIGkrPTEKcHJpbnQoJ1Vub3MnLGludChyb3VuZChzLzI1MDAwMDAwMDAwMDAwLDApKSwnbWlsbG9uZXMgZGUgdG9uZWxhZGFzJykKcHJpbnQoJ0VuIDIwMTgsIGxhIHByb2R1Y2Npw7NuIG11bmRpYWwgZnVlIGRlIDc1MCBtaWxsb25lcyBkZSB0b25lbGFkYXMnKQ=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
i=0
s=0
while i<64:
  s+=2**i
  print(i+1,2**i,s)
  i+=1
print('Unos',int(round(s/25000000000000,0)),'millones de toneladas')
print('En 2018, la producción mundial fue de 750 millones de toneladas')