Python Forum
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calling chunks of code
#1
Is there a way in python to assign a set of functions, a/o actions to a variable that i can call to and run instead of copy/pasting the same chunk of code over and over?
Reply
#2
Not sure what you mean by a/o. Have you read about functions?
Reply
#3
Please reply on the forum instead of PMs. You said my link isn't working?
Reply
#4
I recommend you go through some of the basic python tutorials that are out there, they will get you up and running. Really it's tutorials first then forums once you are well and truly stuck. Forums can be a very frustrating first port of call... do what you can using google first.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Sad How to split a String from Text Input into 40 char chunks? lastyle 7 1,122 Aug-01-2023, 09:36 AM
Last Post: Pedroski55
  is there an itertor of chunks? Skaperen 8 1,930 Jul-22-2022, 10:17 PM
Last Post: Skaperen
  How to scan huge files and make it in chunks ampai 2 2,588 May-28-2020, 08:20 PM
Last Post: micseydel
  how to divide one big equation entered as a string to small chunks gungurbuz 1 1,616 May-28-2020, 03:46 PM
Last Post: Larz60+
  Help with calling the function as the code keep firing chris0147 8 3,929 May-04-2018, 09:00 AM
Last Post: ThiefOfTime

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020