1. 000456
2. 456000
3. 456
4. error
456
1. 345000
2. 000345
3. 000000345
4. 345000000
000345
1. print(“-ns”%S)
2. print(“-ns”%S)
3. print(“%ns”%S)
4. print(“%-ns”%S)
print(“\%-ns”\%S)
1. -000122
2. 000122
3. –00122
4. -00122
–00122
1. 34.00
2. 34.0000
3. 34.000000
4. 34.00000000
34.000000
1. 56.00
2. 56.24
3. 56.23
4. 0056.236
56.24
1. 22.1900
2. 22.00000
3. 22.19
4. 22.20
22.19
1. True
2. False
False
1. Error
2. 1 hello you 4.0
3. 1 hello 4 you
4. 1 4 hello you
1 hello 4 you
1. ‘There are %g %d birds.’ %4 %blue
2. ‘There are %d %s birds.’ %(4, blue)
3. ‘There are %s %d birds.’ %[4, blue]
4. ‘There are %d %s birds.’ 4, blue
‘There are \%d \%s birds.’ \%(4, blue)