21.11.2014 Views

Python Programming

Python Programming

Python Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Python</strong> <strong>Programming</strong><br />

Basics<br />

Control Flows syntax<br />

While statements:<br />

>>> x = 5<br />

>>> while x > 0:<br />

… print x<br />

… x = x – 1<br />

…<br />

5<br />

4<br />

3<br />

2<br />

1<br />

32<br />

HP CONFIDENTIAL - ENABLEMENT ONLY, NOT FOR CUSTOMER USE.

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

Saved successfully!

Ooh no, something went wrong!