Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: New zealand Trivia Quiz
Post: RE: New zealand Trivia Quiz

This is what I have now how do I only use one for loop and add the other age level quiz. Can someone do it for me without the use of functions.
SEWII Homework 7 1,780 Mar-23-2023, 10:02 PM
    Thread: New zealand Trivia Quiz
Post: RE: New zealand Trivia Quiz

name = input("Hello user, What is your name? ") # Welcome the user by their name to New Zealand Trivia quiz print(f"Welcome {name}, to New Zealand Trivia quiz") # Give instruction of this game pri...
SEWII Homework 7 1,780 Mar-23-2023, 10:00 PM
    Thread: New zealand Trivia Quiz
Post: RE: New zealand Trivia Quiz

(Mar-23-2023, 04:04 AM)deanhystad Wrote: You write code in the wrong order. Focus on quiz logic first, then add stuff like banners and getting names and ages. Keeping your existing program as a ...
SEWII Homework 7 1,780 Mar-23-2023, 04:25 AM
    Thread: New zealand Trivia Quiz
Post: RE: New zealand Trivia Quiz

(Mar-23-2023, 03:07 AM)SEWII Wrote: (Mar-23-2023, 02:07 AM)deanhystad Wrote: What have you tried? #welcome banner def welcome_banner(): print("| -------------------------------------------- |"...
SEWII Homework 7 1,780 Mar-23-2023, 03:09 AM
    Thread: New zealand Trivia Quiz
Post: RE: New zealand Trivia Quiz

(Mar-23-2023, 02:07 AM)deanhystad Wrote: What have you tried? #welcome banner def welcome_banner(): print("| -------------------------------------------- |") print("| ...
SEWII Homework 7 1,780 Mar-23-2023, 03:07 AM
    Thread: New zealand Trivia Quiz
Post: New zealand Trivia Quiz

Can someone make or help with creating a NZ Trivia Quiz Using only one for loop, lists, While True loop and no use of functions. Create a New Zealand trivia quiz. The game will consist of multiple-ch...
SEWII Homework 7 1,780 Mar-23-2023, 01:41 AM
    Thread: Higher or lower game
Post: RE: Higher or lower game

(Mar-15-2023, 06:56 PM)jefsummers Wrote: When you post code please use the Python tags in the toolbar. Otherwise you lose indentation. What you posted does not seem to have changed/fixed problems p...
SEWII Homework 17 3,970 Mar-15-2023, 07:11 PM
    Thread: Higher or lower game
Post: RE: Higher or lower game

(Mar-15-2023, 07:00 PM)deanhystad Wrote: Please use python tags when you post your code. I saw you tried. Next time review before hitting the post button. Since you decided to ignore any advice, ...
SEWII Homework 17 3,970 Mar-15-2023, 07:10 PM
    Thread: Higher or lower game
Post: RE: Higher or lower game

I have now added a for loop but my game doesn't end and show the goodbye banner when asked to play again or if you want to play again that doesn't work either
SEWII Homework 17 3,970 Mar-15-2023, 06:33 PM
    Thread: Higher or lower game
Post: RE: Higher or lower game

thanks
SEWII Homework 17 3,970 Mar-15-2023, 06:31 PM
    Thread: Higher or lower game
Post: RE: Higher or lower game

(Mar-14-2023, 07:38 PM)deanhystad Wrote: Output:Where would I add the guessing loop and what type of loop should I useThe guessing loop would be in the function that plays a single game. What type ...
SEWII Homework 17 3,970 Mar-15-2023, 12:30 AM
    Thread: Higher or lower game
Post: RE: Higher or lower game

(Mar-14-2023, 04:57 PM)jefsummers Wrote: You need to organize the code better, suggest Initialization (imports, constants, player name, etc.) Multi-game loop (allow for new games) Game loop (initial...
SEWII Homework 17 3,970 Mar-14-2023, 06:34 PM
    Thread: Higher or lower game
Post: RE: Higher or lower game

(Mar-14-2023, 04:56 PM)deanhystad Wrote: If you don't want to show the answer, why do you print it? Your other error is a bit more subtle. After you generate a random number you want to give the p...
SEWII Homework 17 3,970 Mar-14-2023, 06:33 PM
    Thread: Higher or lower game
Post: RE: Higher or lower game

The problem is that is shows the answer already and that every time the user guesses an answer the number changes. It also doesn't end when the person runs out of guesses it just keeps going.
SEWII Homework 17 3,970 Mar-14-2023, 03:25 AM
    Thread: Higher or lower game
Post: RE: Higher or lower game

(Mar-13-2023, 06:43 PM)jefsummers Wrote: What have you got so far, and where are you stuck (or what errors are you getting)? This is what I have so far import random #welcome banner def welcome_ba...
SEWII Homework 17 3,970 Mar-14-2023, 03:24 AM
    Thread: Higher or lower game
Post: Higher or lower game

Assist in coding to create higher or lower game. Display the screen to enter users name and showing a welcome 'banner' After the user enters there name Ask the player to a guess a number between 1 -...
SEWII Homework 17 3,970 Mar-13-2023, 05:42 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020