Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python syntaxerror: unexpected character after line continuation character

You must press enter after continuation character

Note: Space after continuation character leads to error

cost = {"apples": [3.5, 2.4, 2.3], "bananas": [1.2, 1.8]}

0.9 * average(cost["apples"]) +  """enter here"""
0.1 * average(cost["bananas"])
 
PREVIOUS NEXT
Tagged: #python #unexpected #character #line #continuation #character
ADD COMMENT
Topic
Name
2+8 =