Thursday 16 July 2015

A Wee Python Challenge

A Wee Python Challenge


In today's lesson we are going to start with a mini Python challenge.

Your Task:

Answer the two problems below.

Screen dump the code and the output to a Google document and post the URL to the blog.

NOTE:  If you get help from another website or a peer acknowledge this under a heading called 'Sources'.

Problems

1. Write a program in Python which adds up 3 numbers which are inputted by the user.

2. Write a program in Python which finds the maximum number in the list below:

[7,15,4,5,22,32,45,19]

When you have finished the challenge you may continue with the Controlled assessment work:

Extension Challenge (Optional but worth doing for CA)

Write a Python Program for a 'Tic Tac Toe' game.  This is quite a big program and you may want to reserach and try it out as an additional task over the Summer.

.


16 comments:

  1. https://docs.google.com/document/d/1KMKgacB6_25RxL1xtWqvndC1sc6c_DJOlj8xCI8Rf9A/edit?usp=sharing

    ReplyDelete
  2. https://docs.google.com/a/gillotts.org.uk/document/d/10bRfZvb_dVisJ33delmeBenewlOQd1ZdftpJkl0lK_8/edit?usp=sharing

    ReplyDelete
  3. https://docs.google.com/a/gillotts.org.uk/document/d/1tiRyJEpbvGbT75oNx091ZMLm6H7jCUL7YqZ0TJXxOvI/edit?usp=sharing

    ReplyDelete
  4. https://docs.google.com/document/d/1q7_HokGz_eojuzFFjq2CVK0Y8iGPwdChtGhiFB9cFpY/edit

    ReplyDelete
  5. https://docs.google.com/document/d/11LocH3XeJGBfM95H0LyQR1vdTzlBVvO_Tni_JMA7p2Y/edit

    ReplyDelete
  6. https://docs.google.com/document/d/1q7_HokGz_eojuzFFjq2CVK0Y8iGPwdChtGhiFB9cFpY/edit

    ReplyDelete
  7. https://docs.google.com/document/d/1IAAk-R5ThTUHVOpIh3UIZpmnYMV9rsVQwvU8QgbzhDs/edit

    ReplyDelete
  8. https://docs.google.com/document/d/12uHDrkKC8wj_mCMS5qXVwn5OfYckdcjcRyNB2fqc95Q/edit?usp=sharing

    ReplyDelete
  9. #Adds up the total of three numbers inputted by the user

    sum=0
    for item in range (0,3):
    number=int(input("Enter number"))
    sum=sum + number
    print ("The answer is:",sum)

    ReplyDelete
  10. https://docs.google.com/a/gillotts.org.uk/document/d/1oXTpKUzv8oJvMw1e8GwMOS0oFqB1yOA2NVT9ODopU2s/edit?usp=sharing

    ReplyDelete
  11. https://docs.google.com/a/gillotts.org.uk/document/d/1LMpZReoHLXgAhhBwyC-xUlmD2yLMSliSVeo3lSpykIk/edit?usp=sharing

    Sorry for being late, thought it posted!

    ReplyDelete
  12. https://docs.google.com/a/gillotts.org.uk/document/d/1tiRyJEpbvGbT75oNx091ZMLm6H7jCUL7YqZ0TJXxOvI/edit?usp=sharing

    ReplyDelete
  13. https://docs.google.com/a/gillotts.org.uk/document/d/1tiRyJEpbvGbT75oNx091ZMLm6H7jCUL7YqZ0TJXxOvI/edit?usp=sharing

    ReplyDelete
  14. https://docs.google.com/a/gillotts.org.uk/document/d/1U7rcAwKhQTdF9Wg-1aAFq1kOk5RZJqo3PpBm-o_aFi4/edit?usp=sharing

    ReplyDelete
  15. https://docs.google.com/a/gillotts.org.uk/document/d/1U7rcAwKhQTdF9Wg-1aAFq1kOk5RZJqo3PpBm-o_aFi4/edit?usp=sharing

    ReplyDelete
  16. https://docs.google.com/a/gillotts.org.uk/document/d/1U7rcAwKhQTdF9Wg-1aAFq1kOk5RZJqo3PpBm-o_aFi4/edit?usp=sharing

    ReplyDelete