G2A Many GEOs
SHARE
TWEET

Untitled

a guest Mar 28th, 2020 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a = 1
  2. v = input()
  3. o = []
  4. vn = ""
  5. vsota=0
  6.  
  7. for letter in v:
  8.     if(letter == '*'):
  9.         o.append(a)
  10.         vsota += a
  11.     else:
  12.         a += 1
  13.  
  14. for letter in range(len(o)):
  15.     if(letter == len(o)-1):
  16.        vn += str(o[letter]) + " = "
  17.     else:
  18.         vn += str(o[letter]) + " + "
  19.  
  20. print(str(vn) + str(vsota))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top