+, Symbol used for concatenation, str(), Needed to turn a number into a string for output, int(), Needed to store input as a whole number, surname = input("Enter your name "), code to ask for and store input, age = int(input("Enter your age: ")), code to ask for and store a whole number, print("Your surname is " + surname), code to display a message, print("Your age is " + str(age)), code to display a message including a number

Papan Peringkat

Gaya visual

Pilihan

Berganti templat

Pulihkan simpan otomatis: ?