[Tutor] How to use a Variable in an input statement

YAW ANTWI-ADJEI yawantwiadjei at gmail.com
Wed Jul 1 08:42:10 EDT 2020


Hello,
I want to know how I can use a variable such as 'StudentName' in an input
statement such that the prompt will read something like "Yaw, how old are
you?" assuming that the variable StudentName = 'Yaw'

Thus, I want something like:
*StudentName* = 'Yaw'
Age = input(*StudentName*, 'how old are you?')

Thank you for your help in advanced
Yaw Antwi-Adjei


More information about the Tutor mailing list