Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
python class variables make blobal
katty
Programming language:
Python
2021-04-22 21:04:48
0
Q:
python class variables make blobal
mensenisevirem
Code:
Python
2021-07-04 17:06:03
x = 10 class myClass1(): global x # This takes the variable x outside this class
1
Tags
python
class
variable
make
var
Related
how to use class's in python
python print class variables
how to define a class in python
python instantiate class
how to inherit a class in python
python define class
python global variables
how to make a variable in python 3
declare class python
how to assign a variable to a class in python
create class python
how to access variables from a class in python
how to declare a class in python
global variables python
How to make a new class in python
create and use python classes
class variable in python
how to make a class in python
New to Communities?
Join the community