Home
Blogs
Questions

Home

About Us

Blogs

Questions

Monetize

Post Job

banner

Questions about pycom

Read more about pycom

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - pycom

micropython: loading data from a file in function causing an endless loop

I am working on a lopy4 from pycom and I have encountered an od problem while loading config data from a txt file: def loadFromConfigFile(): f= open('config.txt') for line in f: if &qu...
test-img

Dennis

micropython

pycom

Votes: 0

Answers: 1

Latest Answer

Thanks, to nekomatics comment I solved the issue. I simply wasn't aware of the global keyword in python. To stay with the same logic as before, the code should look like this. def loadFromConfigFile()...
test-img

Dennis

Posts

Questions

Blogs

Where knowledge meets opportunity!

About

  • Company
  • Monetize your knowledge
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved