QuestionQ28Verified/Python/PyEZCopy linkReport a problemAsk AstroTutorSave questionWhat is the proper Python script syntax for prompting a user for input?AhostIP = input("Device IP address: ")BhostIP = input{Device IP address: }ChostIP = input"Device IP address: "Dinput("Device IP address: ") = hostIPShow AnswerAnswerExplanationIn Python, input() is called with parentheses around a quoted prompt string, and its returned value can be assigned to a variable using =.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion