fork(1) download
  1. number = []
  2. def get_positive_negative(number):
  3. positive_number = []
  4. negative_number = []
  5. while number != 'q':
  6. if float(number) > 0:
  7. positive_number.append(float(number))
  8. print(positive_number)
  9. else:
  10. negative_number.append((float(number)))
  11. print(negative_number)
  12.  
  13.  
  14. if __name__ == ' __main__':
  15. positive_number, negative_number = get_positive_negative(number)
  16.  
  17. number = input("Enter number")
  18. get_positive_negative(number)
Success #stdin #stdout 0.03s 9704KB
stdin
Standard input is empty
stdout
Standard output is empty