I have written a code to display the seven segment output. Whereas I need to display the output side by side. Say input: 123 , output should display seven segment side by side as below
# ### ###
# # #
# ### ###
# # #
# ### ###
Here is my logic:
dict = {0:('###','# #','# #','# #','###'),
1:(' #',' #',' #',' #',' #'),
2:('###',' #','###','# ','###'),
3:('###',' #','###',' #','###'),
4:('# ','# ','###',' #',' #'),
5:('###','# ','###',' #','###'),
6:('###','# ','###','# ','###'),
7:('###',' #',' #',' #',' #'),
8:('###','# #','###','# #','###')}
value = input("enter value:")
for i in value:
list1 = dict.get(int(i))
print('\n'.join(list1))