Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




18 posts

Geek


#152244 21-Sep-2014 13:50
Send private message

I have am trying to up skill my programming knowledge by doing an online course in Python. I have been smacking my head against an assignment for two weeks but I am not making much progress. I am looking for someone who can help/ mentor me as I am finding this incredibly challenging.

Create new topic
280 posts

Ultimate Geek


  #1133125 21-Sep-2014 14:33
Send private message

I can try help, what are you having trouble with?

16181 posts

Uber Geek

Trusted
Subscriber

  #1133126 21-Sep-2014 14:43
Send private message

I did python years ago, may be able to help. Can help with general programming stuff and approach probably more than code level.

 
 
 
 




18 posts

Geek


  #1133129 21-Sep-2014 14:51
Send private message

I am on to my final assignment where I have to create a multiple answer quiz. I have written some of the program but am stuck on a number of problems. Can you PM me your email and I can send you the assignment and what I have done so far
along with my many questions.

570 posts

Ultimate Geek

Trusted
Lifetime subscriber

  #1133150 21-Sep-2014 15:06
Send private message

This may or may not be of any help

https://www.youtube.com/user/MontyPython

:-)



18 posts

Geek


  #1133152 21-Sep-2014 15:12
Send private message

Lol. The sad thing is that I am old enough to remember watching that sketch on the original Monty Python series. Good times.

16181 posts

Uber Geek

Trusted
Subscriber

  #1133166 21-Sep-2014 16:25
Send private message

You're more likely to get answers to questions on the forum than having someone look at your work and do the rest for you. If you're having real trouble talk to a tutor.



18 posts

Geek


  #1133170 21-Sep-2014 16:39
Send private message

Not trying to get someone to do my work for me. I really want to do this by myself but I am stuck on one aspect. I am trying to figure out how to stop the program once all questions are answered. I have a list of multi choice questions in a parallel list. I have used the random function to get it randomly asking questions. How would I get it to store what questions have been successfully answered. At the moment I am trying to store the index of the question and then compre this to the original. Just like to know if this is the right road to go down or if there is a better way of solving this.

 
 
 
 


16181 posts

Uber Geek

Trusted
Subscriber

  #1133173 21-Sep-2014 16:41
Send private message

You could keep the answered questions in the URL (cludgy) or a cookie - cookie is probably better. If you were connected to a database that'd work too but it'd be overkill. You'll just have to work out your own cookie format, maybe something like

1=a,2=n,3=elephant

Could represent q1 answered answered a (assuming multi choice), 2 not answered, 3 text entry.

2172 posts

Uber Geek

Lifetime subscriber

  #1133175 21-Sep-2014 17:03
Send private message

teachnz: Not trying to get someone to do my work for me. I really want to do this by myself but I am stuck on one aspect. I am trying to figure out how to stop the program once all questions are answered. I have a list of multi choice questions in a parallel list. I have used the random function to get it randomly asking questions. How would I get it to store what questions have been successfully answered. At the moment I am trying to store the index of the question and then compre this to the original. Just like to know if this is the right road to go down or if there is a better way of solving this.


If I understand what you are saying, you are selecting a question randomly and once it is answered you record that it has been used. Then you select another question randomly, but now you have to check that it has not been asked already. If it hasn't you carry on. If it has then you try again with another random number.

It would be easier to randomize a new list (array) of the question numbers and then sequentially work through that list. Records before the current one have been answered and any after it haven't been asked. Once the last question in the list has been answered the quiz is complete. To store the current state of the quiz, you save the question number list and the current question number.



18 posts

Geek


  #1133192 21-Sep-2014 18:00
Send private message

Yes. That's exactly what I want to do. Hadn't thought of randomising the list. Thank you. I will have a go at doing it that way.

Create new topic




News »

D-Link A/NZ extends COVR Wi-Fi EasyMesh System series with new three-pack
Posted 4-Aug-2020 15:01


New Zealand software Rfider tracks coffee from Colombia all the way to New Zealand businesses
Posted 3-Aug-2020 10:35


Logitech G launches Pro X Wireless gaming headset
Posted 3-Aug-2020 10:21


Sony Alpha 7S III provides supreme imaging performance
Posted 3-Aug-2020 10:11


Sony introduces first CFexpress Type A memory card
Posted 3-Aug-2020 10:05


Marsello acquires Goody consolidating online and in-store marketing position
Posted 30-Jul-2020 16:26


Fonterra first major customer for Microsoft's New Zealand datacentre
Posted 30-Jul-2020 08:07


Everything we learnt at the IBM Cloud Forum 2020
Posted 29-Jul-2020 14:45


Dropbox launches native HelloSign workflow and data residency in Australia
Posted 29-Jul-2020 12:48


Spark launches 5G in Palmerston North
Posted 29-Jul-2020 09:50


Lenovo brings speed and smarter features to new 5G mobile gaming phone
Posted 28-Jul-2020 22:00


Withings raises $60 million to enable bridge between patients and healthcare
Posted 28-Jul-2020 21:51


QNAP integrates Catalyst Cloud Object Storage into Hybrid Backup solution
Posted 28-Jul-2020 21:40


Vector and AWS join forces to accelerate the future of energy
Posted 28-Jul-2020 21:35


JBL launches new mobile earbuds and PC speakers
Posted 22-Jul-2020 16:04



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.