Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1261

Python • Importing variables from module

$
0
0
Hello experts,

I am learning python.

My question: I am trying to import string variables from separate module to avoid retyping the same strings in each module where they are used. (I am using Pydroid app on my phone for now, to get a grip on the language). While the program seems to recognize imported variables, they stay highlighted as "undefined" which is annoying. Is it just Pydroid behavior or I am doing a wrong thing?

Statistics: Posted by danielthomas — Mon Feb 19, 2024 9:20 am



Viewing all articles
Browse latest Browse all 1261

Trending Articles