As an intermediate python developer, I have attempted to solve a problem which simulates a virtual library. I essentially need to ask the user for their name and the number of books they have read.
My input must look something like this:
name = str(input("Enter name: ")))
booksRead = int(input("Number of books", *name variable* "read: "))
Unfortunately, I cannot seem to find any way to reference my name variable within my booksRead variable (obviously python does not allow you to reference variables within input prompters).
Is there any way I can achieve the same result?