0

A program that reads 4 sets of 4 dashed lines and outputs the four binary symbols that each set of four lines represents.

21st May 2021, 7:27 PM
Motlatso Windy
Motlatso Windy - avatar
4 Answers
+ 4
Show your attempt. Please.
21st May 2021, 7:28 PM
Dino Wun (Use the search bar plz!)
Dino Wun (Use the search bar plz!) - avatar
+ 3
What is your question? Please show your attempt. Please give a better task description and include an example.
21st May 2021, 7:30 PM
Benjamin JĂŒrgens
Benjamin JĂŒrgens - avatar
0
You definitly need to use loops for this. Also, you can link your code in here to make it easier for other to check out your code
21st May 2021, 10:41 PM
Apollo-Roboto
Apollo-Roboto - avatar
- 1
dash1=input("Enter the 1st row dashes :") dash2=input("Enter the 2nd row dashes :") dash3=input("Enter the 3rd row dashes :") dash4=input("Enter the 4th row dashes :") dash5=input("Enter the 5th row dashes :") dash6=input("Enter the 6th row dashes :") dash7=input("Enter the 7th row dashes :") dash8=input("Enter the 8th row dashes :") dash9=input("Enter the 9th row dashes :") dash10=input("Enter the 10th row dashes :") dash11=input("Enter the 11th row dashes :") dash12=input("Enter the 12th row dashes :") dash13=input("Enter the 13th row dashes :") dash14=input("Enter the 14th row dashes :") dash15=input("Enter the 15th row dashes :") dash16=input("Enter the 16th row dashes :") # counter=0 # list1=[] list2=[] list3=[] list4=[] #****************** FIRST BINARY DIGITS ***************************** #reading 1st row of dashes class Dashes(): def __init__(self): self.counter=0 def define_dashes(self,dash,list): for charr in dash: if charr == "-": self.counter += 1 if self.counter % 2 == 0: # checks if counter is ev
21st May 2021, 7:42 PM
Motlatso Windy
Motlatso Windy - avatar