xxxxxxxxxx
If you run this you get the error
An item with the same key has already been added azure devops pipeline.
After trying many things I found out that it is not possible to have jobnames
with spaces in it. Removing the spaces resolved the error.
However, this does not resolve this issue because this issue is about
having a better error message that gives a clue on what is wrong
which of course is a minimum requirement on error reporting.
xxxxxxxxxx
def add_string(str1):
length = len(str1)
if length > 2:
if str1[-3:] == 'ing':
str1 += 'ly'
else:
str1 += 'ing'
return str1
print(add_string('ab'))
print(add_string('abc'))
print(add_string('string'))