How to create a global variable from local scope (function)?Questions & Answers › Category: Python › How to create a global variable from local scope (function)? 0 Vote Up Vote Down Geek Boy Staff asked 2 years ago How to create a global variable from local scope (function)? a. Use the nonlocal keyword b. Use the local keyword c. Use the global keywordShare this:Click to share on Facebook (Opens in new window)Click to share on Twitter (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to print (Opens in new window)Click to share on LinkedIn (Opens in new window)Click to share on Pinterest (Opens in new window)Like this:Like Loading...1 Answers 0 Vote Up Vote Down Lokesh Kumar Staff answered 2 years ago c. Use the global keywordShare this:Click to share on Facebook (Opens in new window)Click to share on Twitter (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to print (Opens in new window)Click to share on LinkedIn (Opens in new window)Click to share on Pinterest (Opens in new window)Like this:Like Loading...