human
Largest and Smallest N | Function to return the largest N - digit number in Octal Number System.
Append '7' N times.
Function to return the smallest N - digit number in Octal Number System.
Append '0' ( N - 1 ) times to 1.
Function to print the largest and smallest N - digit Octal number.
Driver code.
Function Call"
How can the above be solved in Python?

Write me a code to largest and Smallest N and the other steps required?
assistant
#Here is code to largest and Smallest N and the other steps required.
 def findLargest ( N ) :
	largest = strings ( N , '7' ) ;
	return largest ;
def findSmallest ( N ) :
	smallest = "1" + strings ( ( N - 1 ) , '0' ) ;
	return smallest ;
def strings ( N , c ) :
	temp = " " ;
	for i in range ( N ) :
		temp += c ;
	return temp ;
def printLargestSmallest ( N ) :
	print ( " Largest : ▁ " , findLargest ( N ) ) ;
	print ( " Smallest : ▁ " , findSmallest ( N ) ) ;
if __name__ == ' _ _ main _ _ ' :
	N = 4 ;
	printLargestSmallest ( N ) ;