30.11.2014 Views

A4 portrait - PET: Python Entre Todos - Python Argentina

A4 portrait - PET: Python Entre Todos - Python Argentina

A4 portrait - PET: Python Entre Todos - Python Argentina

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Feedback and Clarifications 40<br />

input: 168<br />

output: 2^3 x 3 x 7<br />

Note that the factors are increased ordered and if a factor appears more than once, it<br />

most be expressed as a power.<br />

Participants must send the solution as a .py file and it’ll be executed with <strong>Python</strong> 2.7.<br />

The winner will be the one with the less-characters solution. Send your solution to<br />

revistapyar@netmanagers.com.ar with DESAFIO1 in the subject before 01/10/2010.<br />

Good luck and happy golfing!<br />

Feedback and Clarifications<br />

After the first issue was in the street, some people manifest doubts about the<br />

challenge. Clarifications:<br />

• You can’t use external programs or libraries other than the ones in the stdlib.<br />

• Withe spaces, tabs and comments count in the characters count. So, send your<br />

answer as short as possible!<br />

• The input number can be any integer >= 0.<br />

• The words ‘input’ and ‘output’ aren’t part of the expected input or output for the<br />

programs.<br />

• The expected output for 0 is 0 and for 1 is 1.<br />

Then, some participants manifested their desire of some feedback about their<br />

solutions; for this purpose this wiki was created:<br />

http://python.org.ar/pyar/Proyectos/Revista<strong>Python</strong>Comunidad/<strong>PET</strong>1/Desafio<br />

<strong>PET</strong>: English Translation (Issue 1, August 2010) — http://revista.python.org.ar

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!