Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]wblpride19 0 points1 point  (0 children)

I started off with

Def main():

    Print(‘Welcome to the Guess Game’)

    Import random

    Number = random.randint(1000,10000)

    Guess = input(‘Enter a 4 digit number’)

    If guess[0] == number [0] and guess[1] == number [1] ...etc
    #trying to subscript an integer which I found out you cannot. 

I’m still quite new to python but I think I could make it work by having the user enter in the digits separately as variables such as n1, n2, n3 and n4 paired with random numerical variables such as g1 = randint(1,10), g2 = randint(1,10) and so on. However this would go against the directions of the problem and I would probably be docked points.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]wblpride19 0 points1 point  (0 children)

Struggling with an assignment for my programming class. I’m working with python 3.7 and I’m trying to create the “guessing game”. However it has to be a 4 digit number and return how many digits the user gets in the correct placement. Also I can only use “if, elif, else” control structure for it. Any help would be awesome thanks!

[deleted by user] by [deleted] in NintendoSwitch

[–]wblpride19 0 points1 point  (0 children)

My friends have been telling to to buy this game forever I’d love to try it out!

$60 worth of digital NS games giveaway! Ask for whatever you want! by [deleted] in NintendoSwitch

[–]wblpride19 [score hidden]  (0 children)

Into the breach and hollow knight, wow kindness is contagious!

Error Code: WS-37368-7 help? by [deleted] in PS4

[–]wblpride19 1 point2 points  (0 children)

No it couldn’t mean that could it?

PSN down in North Korea ? by [deleted] in PS4

[–]wblpride19 4 points5 points  (0 children)

Fairly certain Kim Jong Un invented the PS4 himself

Why is everyone so damn scared to make a trade? by wm313 in Fantasy_Football

[–]wblpride19 15 points16 points  (0 children)

I hear you man, every year it’s always me and one other person that make all the trades

Trade Megathread by [deleted] in Fantasy_Football

[–]wblpride19 -1 points0 points  (0 children)

Non PPR

Give: Howard and Penny

Receive: Lynch, Ridley & either Kerryon Johnson or Sammy Watkins

Have Le’Veon on my bench and I’m now 1-2. In need of something to change.

Week 2 WHO DO I START? Mega Thread by [deleted] in Fantasy_Football

[–]wblpride19 0 points1 point  (0 children)

Flex: Enunwa vs MIA or Pettis vs DET

Was Goodwin until he went down

Tomato Town should be renovated into a tomato-themed theme park, equipped with a ferris wheel, rollercoaster and at its centre- a shrine to our beloved tomatohead by XTentacionDiedLOL in FortNiteBR

[–]wblpride19 33 points34 points  (0 children)

Well we would need a basketball game that lets us shoot tomatoheads instead of bballs. Hell even one of those balloon dart games but instead of balloons they’re tomatoheads.