Python Forum
How to find what is causing the unboundlocalerror 'crumb' and invalid syntax error?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to find what is causing the unboundlocalerror 'crumb' and invalid syntax error?
#2
The syntax errors are because python 3 print statements should be contained in brakets
print('something')

The code line return cookie, crumb # return a tuple of crumb and cookie shown in the UnboundLocalError does not appear anywhere in the code shown.
Reply


Messages In This Thread
RE: How to find what is causing the unboundlocalerror 'crumb' and invalid syntax error? - by Yoriz - Jul-28-2020, 11:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Statsmodels Multiple Regression Syntax Error Burger 2 2,844 Jul-13-2021, 03:04 AM
Last Post: Burger
  Find subsequent error relationships between diagnostic events vanny 1 1,716 Apr-04-2020, 04:19 PM
Last Post: Larz60+
  SyntaxError: invalid syntax Truman 3 2,964 Mar-10-2020, 03:16 PM
Last Post: Truman
  Keras + Matplotlib causing crash spearced 3 4,544 Feb-06-2020, 04:54 PM
Last Post: zljt3216
  I need help fixing a syntax error! chenqin348 5 4,204 Dec-27-2019, 12:07 PM
Last Post: Larz60+
  Error : (FileNotFoundError(2, 'The system cannot find the file specified', None, 2, Shipika 3 3,564 Nov-25-2019, 02:39 PM
Last Post: buran
  list comprehension invalid syntax mcgrim 1 4,700 Jun-12-2019, 08:28 PM
Last Post: Yoriz
  Can you help me with this error? IndexError: invalid index of a 0-dim tensor. DerBerliner 1 4,199 Feb-28-2019, 05:47 PM
Last Post: Larz60+
  %matplotlib inline , invalid syntax yamoon 1 13,089 Jul-12-2018, 07:22 AM
Last Post: volcano63
  Misterious invalid syntax Galedon 3 3,487 Mar-30-2018, 03:49 PM
Last Post: Galedon

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020