Files
freeCodeCamp/curriculum/challenges/english/20-upcoming-python/learn-python-by-building-a-blackjack-game/5daa813381b9e3db6c126b43.md
T
2024-02-28 09:31:58 +01:00

740 B

id, title, challengeType, dashedName
id title challengeType dashedName
5daa813381b9e3db6c126b43 Step 1 20 step-1

--description--

PYTHON

Set the hello variable to "world". Then print the value.

--hints--

The source code should include one = 2

assert(code.match(/one\s*=\s*2/))

The hello variable should equal "world".

({ test: () => assert.equal(__userGlobals.get("hello"), "world") })

The one variable should be an integer.

({ test: () => {
  assert(runPython(`_Node(_code).find_variable("one").is_integer()`))
}})

--seed--

--seed-contents--

--fcc-editable-region--
one = 1
hello = "goodbye"
print(hello)
--fcc-editable-region--

--solutions--

one = 2
hello = "world"
print(hello)