



"""simple docstring"""







# Function to print upper half of diamond (pyramid)



def      __UpperCAmelCase      (    __lowerCamelCase	)							->      List[Any]:
		for i in range(0						,     snake_case__	):
				for _ in range(0						,     n - i - 1	):  # printing spaces
						print(''' '''						,     end=''''''	)
				for _ in range(0						,     i + 1	):  # printing stars
						print('''* '''						,     end=''''''	)
				print()



def      __UpperCAmelCase      (    __lowerCamelCase	)							->      int:
		for i in range(snake_case__						,     0						,     -1	):
				for _ in range(snake_case__						,     0						,     -1	):  # printing stars
						print('''* '''						,     end=''''''	)
				print()
				for _ in range(n - i + 1						,     0						,     -1	):  # printing spaces
						print(''' '''						,     end=''''''	)



def      __UpperCAmelCase      (    __lowerCamelCase	)							->      Optional[int]:
		if n <= 0:
				print('''       ...       ....        nothing printing :('''	)
				return
		floyd(snake_case__	)  # upper half
		reverse_floyd(snake_case__	)  # lower half


if __name__ == "__main__":
							print(R'| /\ | |- |  |-  |--| |\  /| |-')
							print(R'|/  \| |- |_ |_  |__| | \/ | |_')
							lowerCAmelCase_   						=   1
							while K:
														lowerCAmelCase_   						=   int(input('enter the number and , and see the magic : '))
														print()
														pretty_print(user_number)
														lowerCAmelCase_   						=   int(input('press 0 to exit... and 1 to continue...'))

							print('Good Bye...')





def 		UpperCamelCase	(   snake_case__       :    int       ,     snake_case__       :    int	)	->     int:
   return int(input_a == input_a == 0	)
def 		UpperCamelCase	(   )	->     None:
   print('Truth Table of NOR Gate:'	)
   print('|   Input 1   |  Input 2  | Output |'	)
   print(F"""|      0      |    0      |  {nor_gate(0       ,     0	)}     |"""	)
   print(F"""|      0      |    1      |  {nor_gate(0       ,     1	)}     |"""	)
   print(F"""|      1      |    0      |  {nor_gate(1       ,     0	)}     |"""	)
   print(F"""|      1      |    1      |  {nor_gate(1       ,     1	)}     |"""	)


if __name__ == "__main__":
    import doctest

    doctest.testmod()
    main()



