Advertisement
skip420

Tree3

Jan 26th, 2021
1,185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.15 KB | None | 0 0
  1. from ete2 import Tree
  2. unrooted_tree = Tree( "(Primary_Teacher,Manager,(Teacher1,Sales,Marketing,Teachers_Aid,Teacher1,Teacher2,Teacher3,Teacher4,Teacher5,this is where you want to type before here and there ));" )
  3. print unrooted_tree
  4.  
  5. def main():
  6.     while True:
  7.         print("\n>---------------------------------------->\n1 Type words here"
  8.               "\n2 to create tree \n3  \n4  \n5  \n6   \n7   \nPress q to quit.\n\n")
  9.         option = input("Your Option: ")
  10.         if option == 'q' or option == 'Q':
  11.             break
  12.         elif option == '1':
  13.             username = input("\nPlease enter the username: ")
  14.             check_username(username)
  15.         elif option == '2':
  16.             email = input("\nPlease enter the email: ")
  17.             check_email(email)
  18.         elif option == '3':
  19.             f = input("\nPlease enter the path your username file: ")
  20.             try:
  21.                 username_file = open(f, 'r')
  22.                 username_list = username_file.read()
  23.                 for username in username_list.splitlines():
  24.                     check_username(username)
  25.             except Exception as e:
  26.                 print("Something wrong, "+str(e))
  27.             else:
  28.                 username_file.close()
  29.         elif option == '4':
  30.             f = input("\nPlease enter the path of your email file: ")
  31.             try:
  32.                 email_file = open(f, 'r')
  33.                 email_list = email_file.read()
  34.                 for email in email_list.splitlines():
  35.                     check_email(email)
  36.             except Exception as e:
  37.                 print("Something wrong, " + str(e))
  38.             else:
  39.                 email_file.close()
  40.        
  41.         elif option == '5':
  42.             username = input(" username: ")
  43.            
  44.             webbrowser.open('https://twitter.com/search?f=images&vertical=default&q='+username+'')
  45.        
  46.         elif option == '7':
  47.             webbrowser.open('https://www.snapchat.com/add/flaah999')
  48.        
  49.         elif option == '6':
  50.             webbrowser.open('https://download-twitter-videos.com/ar/')
  51.        
  52.             continue
  53.  
  54. if __name__ == '__main__':
  55.     main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement