18.04.2014 Views

Python Worksheets - Computer Science

Python Worksheets - Computer Science

Python Worksheets - Computer Science

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

For example:<br />

if (input == ‘a’)<br />

…<br />

do something<br />

…<br />

else<br />

…<br />

do something else<br />

…<br />

3. Compute the temperature in Fahrenheit or Celsius:<br />

F = (9/5)*C+32<br />

C = (5/9)*(F-32)<br />

4. Print the Result<br />


 12


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

Saved successfully!

Ooh no, something went wrong!