This is the situation, I will write the example code:
user = 'Boby'
a = ['hana', 'dul', 'se']
b = method.prepareSentence(a, user)
first_sentence = method.prepareSpeech('short_speech', user, b)
second_sentence = method.prepareDebates('quick_debates', user, b)
but here I want a to have one more element in the list, so
a = ['hana', 'dul', 'se', 'sou']
Is it possible to do this without duplicating variables and making two versions of a?
I found this solution but this is very primitive and will make the script bigger and I want to make changes to many other similar scripts:
a1 = ['hana', 'dul', 'se']
b1 = method.prepareSentence(a, user)
a2 = ['hana', 'dul', 'se', 'sou']
b2 = method.prepareSentence(a, user)
first_sentence = method.prepareSpeech('short_speech', user, b1) second_sentence = method.prepareDebates('quick_debates', user, b2)