Menu
Home
AI
Machine Learning
Data Science
Python
Interview Questions
Python Interview Questions
Python - Formatting
1. What is the format operator for defining you want 2 leading zeroes in output?
A) {02d}
B) {2d}
C) {:02d}
Answer: {:02d}
2. You can create an alias using the keyword?
A) as
B) from
C) alias
Answer: as