HOW CAN I DO SO, THAT IF I GIVE: "1" IT GIVE ME ONLY "YOU LOVE..." WITHOUT "ENTER A HOSTNAME"??
import random import socket list = ["Nava", "Paula", "Lou"] guest = "" password = "Joker-Tool" print(" Welcome! This is Joker-Tool coded by Joe(CMD)") while guest != password: guest = input("\nEnter Password to use this Tool: ") if guest == password: print("Succes!") else: print("False Password! Please try again!!!") print("\nSelect Option \n[1] Random Love \n[2] IpGetter \n[3] Say-Bot") h = input("\nSelect: ") if h == "1": print("\nYou love " + random.choice(list)) elif h == "2": print(" Welcome! \nThis is a IPGETTER. The Most speedfull app for check the IP of Host's\n***************************CMD******************************") x = input("\nEnter Hostname: ") hostname = x IP = socket.gethostbyname(x) print("Succes!\n" + IP) elif h == "3": print("This is Say-Bot") y = input("\nPrint anyone Greeting (ex.Hi): ") if y == "Hello" or "Hi" or "Ciao": print("Hi. How are u?") else: print("Error")