+, 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

โดย

ลีดเดอร์บอร์ด

สไตล์ภาพ

ตัวเลือก

สลับแม่แบบ

คืนค่าการบันทึกอัตโนมัติ: ใช่ไหม