import turtle name = turtle.Screen().textinput("Enter your name", "John Doe") print("Hello,", name)
import turtle num = int(turtle.Screen().textinput("Enter a number", "0")) result = num * 2 print("Your number multiplied by 2 is:", result)In this example, the user is prompted to enter a number. The string that is returned by `textinput` is converted to an integer using the `int` function, so that it can be used in a calculation. The number entered by the user is then multiplied by 2, and the result is printed to the console. So, the package library used in these examples is `turtle`.