Advertisement
JPHowe

Untitled

Apr 24th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.68 KB | None | 0 0
  1. file = open("filename.txt","w+")
  2.  
  3.  
  4. print("What type of device is it? Phone or Tablet?")
  5. device=input()
  6. if device==str("Phone"):
  7.    
  8.     print("What brand is your phone? Samsung or IPhone?")
  9.     brand=input()
  10.     if brand==str("IPhone"):
  11.        
  12.         print("What model is your IPhone? IPhone4, IPhone5, IPhone6, IPhone7?")
  13.         model=input()
  14.      
  15.         if model==str("IPhone4"):
  16.             print("Here is a program to help find a specific to your issue.\n\n\n")
  17.             exec(open("Task1.py").read())
  18.        
  19.         if model==str("IPhone5"):
  20.             print("Here is a program to help find a solution to your issue.\n\n\n")
  21.             exec(open("Task1.py").read())
  22.        
  23.         if model==str("IPhone6"):
  24.             print("Here is a program to help find a solution to your issue.\n\n\n")
  25.             exec(open("Task1.py").read())
  26.        
  27.         if model==str("IPhone7"):
  28.             print("Here is a program to help find a solution to your issue.\n\n\n")
  29.             exec(open("Task1.py").read())
  30.     if brand==str("Samsung"):
  31.        
  32.         print("What model is your Samsung? Galaxy, Cseries, Aseries, Onseries, Jseries?")
  33.         model=input()
  34.      
  35.         if model==str("Galaxy"):
  36.             print("Here is a program to help find a solution to your issue.\n\n\n")
  37.             exec(open("Task1.py").read())
  38.        
  39.         if model==str("Cseries"):
  40.             print("Here is a program to help find a solution to your issue.\n\n\n")
  41.             exec(open("Task1.py").read())
  42.        
  43.         if model==str("Aseries"):
  44.             print("Here is a program to help find a solution to your issue.\n\n\n")
  45.             exec(open("Task1.py").read())
  46.        
  47.         if model==str("Onseries"):
  48.             print("Here is a program to help find a solution to your issue.\n\n\n")
  49.             exec(open("Task1.py").read())
  50.        
  51.         if model==str("Jseries"):
  52.             print("Here is a program to help find a solution to your issue.\n\n\n")
  53.             exec(open("Task1.py").read())
  54.  
  55. if device==str("Tablet"):
  56.    
  57.     print("What brand is your tablet? Samsung or IPad?")
  58.     brand=input()
  59.     if brand==str("IPad"):
  60.        
  61.         print("What model is your IPad? IPadMini, IPadPro, IPadAir, IPad?")
  62.         model=input()
  63.        
  64.         if model==str("IPadMini"):
  65.             print("Here is a program to help find a solution to your issue.\n\n\n")
  66.             exec(open("Task1.py").read())
  67.        
  68.         if model==str("IPadPro"):
  69.             print("Here is a program to help find a solution to your issue.\n\n\n")
  70.             exec(open("Task1.py").read())
  71.        
  72.         if model==str("IPadAir"):
  73.             print("Here is a program to help find a solution to your issue.\n\n\n")
  74.             exec(open("Task1.py").read())
  75.        
  76.         if model==str("IPad"):
  77.             print("Here is a program to help find a solution to your issue.\n\n\n")
  78.             exec(open("Task1.py").read())
  79.     if brand==str("Samsung"):
  80.        
  81.         print("What model is your Samsung? Tab, TabPro, View?")
  82.         model=input()
  83.    
  84.         if model==str("Tab"):
  85.             print("Here is a program to help find a solution to your issue.\n\n\n")
  86.             exec(open("Task1.py").read())
  87.        
  88.         if model==str("TabPro"):
  89.             print("Here is a program to help find a solution to your issue.\n\n\n")
  90.             exec(open("Task1.py").read())
  91.        
  92.         if model==str("View"):
  93.             print("Here is a program to help find a solution to your issue.\n\n\n")
  94.             exec(open("Task1.py").read())
  95.  
  96. f.write("\n\nDevice:")
  97. f.write(device)
  98. f.write("\nBrand:")
  99. f.write(brand)
  100. f.write("\nModel:")
  101. f.write(model)
  102. f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement