AOICT3
AOICT3
Python Basics
Python Operators
Taking Input:
o Use input() to get user responses:
o name = input("Enter your name: ")
o print("Hello", name)
Convert Input:
o Input is always a string; cast to other types as needed:
o number = int(input("Enter a number: "))
Strings in Python
Key Takeaways