Last active
May 27, 2020 07:37
-
-
Save ashutoshpipriye/fc577305e295100daa897ce5dd8e33f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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