Author Topic: Day 12 - Scope and Number Guessing Game  (Read 1865 times)

TheBreh

  • Administrator
  • Newbie
  • *****
  • Posts: 31
    • View Profile
Day 12 - Scope and Number Guessing Game
« on: November 14, 2021, 05:20:40 pm »
Discuss here.

Share on Facebook Share on Twitter


Secure Da Bag

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Day 12 - Scope and Number Guessing Game
« Reply #1 on: December 02, 2021, 10:10:51 pm »
What is the scope?
Spoiler (hover to show)

Local scope
Spoiler (hover to show)

Global scope
Spoiler (hover to show)

Block scope
Spoiler (hover to show)

Modifying global variable
Spoiler (hover to show)

Conventions
Spoiler (hover to show)

Project
Spoiler (hover to show)

Secure Da Bag

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Day 12 - Scope and Number Guessing Game
« Reply #2 on: December 02, 2021, 10:12:05 pm »
I get line breaks where I don't expect them after I input a guess. Anyone can see why?

I'm coding python on visual studio 2019.

Obreh Winfrey

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Day 12 - Scope and Number Guessing Game
« Reply #3 on: December 02, 2021, 10:56:30 pm »
Running it through an online Python compiler and I don't see any issues.

Secure Da Bag

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Day 12 - Scope and Number Guessing Game
« Reply #4 on: December 02, 2021, 11:21:50 pm »
Maybe it's a VS thing.