Skip to content

Instantly share code, notes, and snippets.

@wakoliVotes
Last active February 13, 2022 13:57
Show Gist options
  • Save wakoliVotes/ff59f58522a0c01d43e7af3eff28b073 to your computer and use it in GitHub Desktop.
Save wakoliVotes/ff59f58522a0c01d43e7af3eff28b073 to your computer and use it in GitHub Desktop.
#In this basic variable assignment, A student learning Python was trying to make a function.
# His code should concatenate a passed string name with string "Edabit" and store it in a variable called result.
# He needs your help to fix this code
name_string = input("Enter the Passed String: ")
print("|==============================|")
print("You Entered: " , name_string)
result = name_string+("Edabit")
print("Your Result is: " + result)
"""
SAMPLE OUTPUTS:
Enter the Passed String: Kingsman
|==============================|
You Entered: Kingsman
Your Result is: KingsmanEdabit
----------------------------------------------------------
Enter the Passed String: Mubashir
|==============================|
You Entered: Mubashir
Your Result is: MubashirEdabit
----------------------------------------------------------
Enter the Passed String: Python
|==============================|
You Entered: Python
Your Result is: PythonEdabit
----------------------------------------------------------
Enter the Passed String: Math
|==============================|
You Entered: Math
Your Result is: MathEdabit
""""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment