Run
# Given string my_string = "apple" # Given variable x = 3.14 # Append the variable to the string result = f"{my_string}{x}" # Print the result print(result)
Output