I have a strange problem
when I use the Netbeans IDE, this line:
total_stock = {items : 0 for items in product_stock}
calls the syntax Error:
Syntax error: no viable alternative for input 'for'
But the same code works fine in the terminal and returns this
>> {'rom_price': 0, 'rim_price': 0, 'ram_price': 0}
I use python 2.7+ on the terminal and the python plugin Version: 0.107 and the Jython plugin Version: 2.12 Source: Python for netbeans 8.0
How to solve this problem?
source share