Hey guys, i got another question. say if you want to only write a few lines of code that can be called on at any time the while the script is running, i'm assuming its the pickle function or something similar to batch like the goto function? Thanks
tondeuse34 0 Light Poster
Recommended Answers
Jump to Postwhat you saying is you want to use the same bit of code over and over?
sorry if this is not what you are asking
if so then you use a functiondef myFunction(param1, param2): print param1 print int(param2)**3 myFunction("Hello", 2) myFunction("Joe", 3)
Hope this helps
…
Jump to PostIt might be helpful to take a look at the "Starting Python" at the top of this forum. There are 5 pages, so don't have to wade through 100's of pages to get you started.
All 6 Replies
Freaky_Chris 299 Master Poster
tondeuse34 0 Light Poster
Capt.Micro 0 Newbie Poster
Freaky_Chris 299 Master Poster
woooee 814 Nearly a Posting Maven
tondeuse34 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.