Skip to content

Instantly share code, notes, and snippets.

@ashutoshpipriye
Last active May 27, 2020 07:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashutoshpipriye/fc577305e295100daa897ce5dd8e33f4 to your computer and use it in GitHub Desktop.
Save ashutoshpipriye/fc577305e295100daa897ce5dd8e33f4 to your computer and use it in GitHub Desktop.
# The code below initializes two variables, z and y.
# We want to assign the total number of characters in z and in y to the variable a.
# Which of the following solutions, if any, would be considered hard coding?
z = "hello world"
y = "welcome!"
a = len("hello worldwelcome!")
a = 11 + 8
a = len("hello world") + len("welcome!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment