Basic Python
Basic Python
13. Does it mean that if we write 20.2f, it means it will be printed after
20 spaces?
Answer:Not exactly! Writing %20.2f means the total width (including
digits, decimal, and spaces) will be at least 20 characters
18. What is the difference between a forward slash (/) and a backslash
(\)?
Answer:Forward Slash (/): Used for division and in URLs/Unix file
paths.
Backslash (): Used as an escape character in strings and in Windows
file paths.