Python Forum
good names for these functions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
good names for these functions
#1
def foo(s,n):
    ??????????
def bar(s,n):
    ??????????
def boo(s,n):
    ??????????
def far(s,n):
    ??????????
a=[x for x in range(10)]
for z in foo(a,3):
    print(*z)
print()
for z in bar(a,4):
    print(*z)
print()
for z in boo(a,3):
    print(*z)
print()
for z in far(a,4):
    print(*z)
Output:
0 1 2 1 2 3 2 3 4 3 4 5 4 5 6 5 6 7 6 7 8 7 8 9 8 9 9 0 1 2 3 4 5 6 7 8 9 0 1 2 1 2 3 2 3 4 3 4 5 4 5 6 5 6 7 6 7 8 7 8 9 0 1 2 3 4 5 6 7 8
there are 4 different functions with similarities and differences. i'm trying to come up with a good name scheme for these.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is a good practice naming user defined python functions with prefix udf_? meerkat 2 300 Mar-09-2024, 01:40 PM
Last Post: buran
  seeking names for my functions Skaperen 0 948 Sep-25-2022, 10:56 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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