Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9318339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T03:06:12+00:00 2026-06-19T03:06:12+00:00

this is the problem I am working on. I have been programming for a

  • 0

this is the problem I am working on. I have been programming for a total of 9 days so I am very new. I am attempting to write a function that generates a random integer between -1,200 and 1,200, and returns a statement dependent of the number. The statements are: number generated: is greater than 800, return ‘Heidi wins’/ less than or equal to 800 and is an EVEN number, return ‘Magic wins’. / less than or equal to 800 and ends with a 3, return ‘Tally wins’. / less than or equal to 800 and ends with a 5, print ‘Chelsea wins’. Otherwise, print ‘Big Girl wins’. Here is my program so far: please help with finishing it up. thank you.

def sillyGame(n):
    mychoices=[
    number=random.choice(myChoices)
    inputNum=raw_input("Enter a number:")

    numbers=['0','1','2','3','4','5','6','7','8','9','.']
    isValidNumber=True 
    for ch in inputNum:
        for element in numbers:
            isMatch=False
            if ch ==element:
                isMatch=True 
                break 
            if isMatch==False:
                isValidNumber==False
                break 
            if isValidNumber==True:
                print("this is a valid number")
            else:
                print("this is not a valid number")
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T03:06:14+00:00Added an answer on June 19, 2026 at 3:06 am

    If your question is as you stated in your comments, then…

    To detect if x is less than 800:
    if x < 800

    To detect if x is even:
    if x % 2 == 0

    To detect if x ends in a 3:
    str(x)[-1] == "3"

    And any combination uses the keywords or or and:
    if x < 800 and x % 2 == 0:

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working on this problem for 2 days now and it's an
I have been working on this problem for a while now. I am trying
I have been working on the following problem from this book . A certain
I've been working on this problem for a few hours and have used many
I'm working on a problem that uses pointer arithmetic and I have found this
I'm fairly new to programming in general but have been working with Java for
I am new to PHP and programming in general. I have been working on
I am new at php programming but I have been stuck with this code
I am new to wcf programming and I have been working on a small
I'm still new to C# programming and have been able to get WebDriver working

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.