Advertisement
KodingKid

Python Class - With Input, Integers, Variables, and more!

Apr 20th, 2021
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. class User:
  2.     name1 = input("What is your name?")
  3.     name2 = input("What is your second name?")
  4.     age = int(input("How old are you?"))
  5. print("Your full name is " +name1 " " +name2)
  6. print(",and you are " +age " years old!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement