How to print the ASCII octal digits in Python

2 Answers

0 votes
import string  
 
print (string.octdigits);
 
 
     
'''
run:
 
01234567
 
'''

 



answered May 17, 2019 by avibootz
0 votes
import string  
 
for ch in string.octdigits:
    print(ch)
 
 
     
'''
run:
 
0
1
2
3
4
5
6
7

'''

 



answered May 17, 2019 by avibootz
...