subject

I'm struggling to get my def command to work, I've tried changing the code in it, but nothing seems to be helping. Could someone help? The actual code should print out like 2 different charts, but without the def I don't believe it will work.

balance = ['1100111010101100', '1101001010011100', '1100111001011100',
'1100100001011100', '1000101101011100', '1110100101011100',
'1110000101011000', '1001110101011101', '0101111011011101',
'1011110101011101']

name = ['Johnny A.', 'Janney B.', 'Joweey C.', 'Jiminny D', 'Carol E.', 'Jeffry F.',
'Jenny G.', 'Robert H.', 'Herman I.', 'Bachman J.']

account = ['CD21', '2A31', 'D1A1', 'A1AD', 'CCC3', 'FB24', 'DF21', 'E3C4',
'B3C4', 'A3C4']

xRate = 3144.02

def binaryToDecimal(n):
return int(n,2)

def hexToDecimal(n):
return int(n, 0)

#Original Account Summary
def originalAccount_summary():
for i in range (len(names[i])):
print("# " + str(hexToDecimal(account[i]) + "\t" + names[i] + "\t" + (binaryToDecimal(balance[i])))

#Current Account Summary
def currentAccount_summary()
for i in range(len(name[i])):
balance. append((binaryToDecimal(balance[i]) * xRate)
originalAccount_summary()

#Main
originalAccount_summary()
xRate = float(input("Enter current rate of exchange BitCoin to US Dollar: $ "))
currentAccount_summary()

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:10
Write a program that begins by reading in a series of positive integers on a single line of input and then computes and prints the product of those integers. integers are accepted and multiplied until the user enters an integer less than 1. this final number is not part of the product. then, the program prints the product. if the first entered number is negative or 0, the program must print “bad input.” and terminate immediately. next, the program determines and prints the prime factorization of the product, listing the factors in increasing order. if a prime number is not a factor of the product, then it must not appear in the factorization. sample runs are given below. note that if the power of a prime is 1, then that 1 must appear in t
Answers: 3
question
Computers and Technology, 22.06.2019 14:40
You are working with a professional edition organization. they wish to install the expense tracker which requires the use of 4 custom tabs, 3 custom objects, and one custom app. if the company is already using 4 applications, 36 custom objects, and 7 custom tabs, what will happen when they try to install expense tracker?
Answers: 1
question
Computers and Technology, 22.06.2019 19:00
Stacy works as blank. the most important soft skill she needs for this role is blank.
Answers: 3
question
Computers and Technology, 22.06.2019 19:20
How might the success of your campaign be affected if you haven’t carefully completed all field data or if you accidentally insert the wrong merge field in the document?
Answers: 2
You know the right answer?
I'm struggling to get my def command to work, I've tried changing the code in it, but nothing seems...
Questions
question
Mathematics, 03.08.2019 02:50
question
Social Studies, 03.08.2019 02:50
question
Mathematics, 03.08.2019 02:50
Questions on the website: 13722363