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
+1 received by user: 2


Topic # 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
279 posts

Ultimate Geek
+1 received by user: 39


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

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

14284 posts

Uber Geek
+1 received by user: 2590

Trusted
Subscriber

  Reply # 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.




AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


 
 
 
 




18 posts

Geek
+1 received by user: 2


  Reply # 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.

539 posts

Ultimate Geek
+1 received by user: 79

Trusted
Lifetime subscriber

  Reply # 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
+1 received by user: 2


  Reply # 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.

14284 posts

Uber Geek
+1 received by user: 2590

Trusted
Subscriber

  Reply # 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.




AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer




18 posts

Geek
+1 received by user: 2


  Reply # 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.

14284 posts

Uber Geek
+1 received by user: 2590

Trusted
Subscriber

  Reply # 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.




AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


1811 posts

Uber Geek
+1 received by user: 454

Lifetime subscriber

  Reply # 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
+1 received by user: 2


  Reply # 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



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:



Geekzone Live »

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



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.