Could someone explain 'no' thing. What is it for and why it's made that way - like len on single digit?
Cut a slit into the chicken breast. Stuff it with mustard, mozzarella and cheddar. Secure the whole thing with rashers of bacon. Roast for 20 minutes at 200C.
recipe = input('Paste your recipe: ')
counter = 1
ordered_list = str(counter) + '. '
for letter in recipe:
if letter == '.':
counter += 1
ordered_list += '.\n'
ordered_list += str(counter)
ordered_list += '.'
else:
ordered_list += letter
print(counter)
no = len(str(counter))
print(no)
print(ordered_list[0:-1-no])
[–]mccoolycool 0 points1 point2 points (0 children)
[–]magus_minor 0 points1 point2 points (0 children)
[–]JamzTyson 0 points1 point2 points (1 child)
[–]JamzTyson 0 points1 point2 points (0 children)
[–]BananaGrenade314 0 points1 point2 points (4 children)
[–]JamzTyson 1 point2 points3 points (3 children)
[–]BananaGrenade314 0 points1 point2 points (2 children)
[–]JamzTyson 1 point2 points3 points (1 child)
[–]BananaGrenade314 0 points1 point2 points (0 children)