I don't know where domain_ip comes from, but your current code doesn't work because the inputs are str and not int. Change the input line to
domain_ip
str
int
user = int(input("Choose some option: "))
2.1m questions
2.1m answers
60 comments
57.0k users