![]() |
| ||
| Python-Tuple Help! i have just been learning python(tuple) at school. And this is my first assignment. I can't seem to figure it out. The assignment is on this website: http://schools.tdsb.on.ca/danforthcti/python/main.html Go to lesson 8>scroll down>its called programming Assignment 9. Can someone help me out? It's simple enough right? thank you! |
| ||
| Re: Python-Tuple Help! Yes, it's simple enough. The example given started out with mypocket = ("gum", "wallet", "old kleenex", "bus ticket"). Was there something unusual about this that prevented you from extending that from 4 items to 10? |
| ||
| Re: Python-Tuple Help! the assignment says to : "The program will then ask you how many items you want from the tuple, and then output them to you." I don't know how to do that part.... |
| |||
| Re: Python-Tuple Help! Hi, I think its very simple. I will give you rough idea about it. first, use raw_input() for asking user to enter number. Quote:
like Quote:
Quote:
|
| ||
| Re: Python-Tuple Help! mypocket = ("gum", "wallet", "old kleenex", "bus ticket") |
| ||
| Re: Python-Tuple Help! Quote:
Theres 2 parts to that question.... >.>" did u not read it all? |
| ||
| Re: Python-Tuple Help! Quote:
Also it appears you have not read the homework assistance announcement. Generally what goes on here is you post what code you have written (following syntax highlighting guidelines) and lots of folks will be glad to help. But most folks (evidently not all) want you to show some effort first. |
| ||
| Re: Python-Tuple Help! I've flagged this as a bad post. Since this is the first time, hopefully it was done correctly. This was the message: This post is from someone who posted a link to their homework assignment, with no attempt to code anything themselves, and then asked for the answer. Further, they berate someone for not reading the homework assignment completely. Any one who is too lazy to cut and paste the question into the forum should not criticize someone else. We don't want to encourage the attitude of, "I'll sit here on the veranda in my rocking chair while you go fetch the homework from the web for me, and then code the answer while I sit here rocking away". Obviously, this violates the "only help those who shown some effort" and also violates the "keep it pleasant" guidline. |
| ||
| Re: Python-Tuple Help! Quote:
|
| All times are GMT -4. The time now is 9:36 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC