SHARE
TWEET

Untitled

a guest Aug 25th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Symbol Simulator
  2. # Define your function here!
  3. def make_symbols(symbols, number):
  4.   adi = (symbols * number)
  5.   return adi
  6.  
  7.  
  8. if __name__ == '__main__':
  9.   # You can use this to test your function.
  10.   # Any code inside this if statement will be ignored by the automarker.
  11.  
  12.   # Test the first example in the question.
  13.   print(make_symbols('!', 5))
  14.  
  15.   # Test the second example in the question.
  16.   print(make_symbols('?', 3))
  17.  
  18.   # You can add more tests here!
  19.  
  20.  
  21. #Confidential Clubhouse
  22. def split(word):
  23.     return [char for char in word]
  24.  
  25. def location(adi):
  26.   allah = split(clubhouse)
  27.   ordtxt = ''
  28.   for letter in allah:
  29.     allah = ord(letter)
  30.     ordtxt = ordtxt + str(allah) + '-'
  31.   return ordtxt[:-1]
  32. clubhouse = input("Clubhouse location: ")
  33. print(location(clubhouse))
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