def work(here):
variabel = "Hi"
x1.here(variabel)
How can I make here as a local parameter? that will work for calling other functions?
Jump to PostYou just use it by its name, like
def work(here):print(here) work("Hi!")
Jump to PostVery bad style, but you could get it to work by passing method, not global function ie okej.method.
Jump to Postpost real code and explain your programs logic.
You just use it by its name, like
def work(here):print(here)
work("Hi!")
ok but if I for example want it to be able to take the value of the other functions:
def work(here):print(here)
here("yes")
here("why")
def okej(ok):
print(ok)
def so(what)
print(what)
work("this")
def work(here):
k1.here("hi")
k2.here("why")
class okej(self,good):
def method(self,yes):
def other(self,yes):
k1 = okej()
k2 = okej()
work(method)
work(other)
This is actually what I want to do! I want the word here to be able to be different names of methods, so I can call them from the function
Very bad style, but you could get it to work by passing method, not global function ie okej.method.
I dont understand what you mean now. My function is actually an option menu. How could I else solve this?
post real code and explain your programs logic.
Ok I sent you a pm
Keep It Organized
Do not ask anyone (member or moderator) for help by email or PM
Looks like you have not clear object for train, which could contain the places for each date and time.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.