
my first test in python
i tried to make something from my mind just to know if i can do something, after learning python for 5 days, i know my code its not good, but i want to improve my skills from the start. if someone could help me it is in portuguese i made a code to simulate a mini bank and account i dont know if the code could function.... ): `conta=0 dívida=0 valor_do_emprestimo=0 principle = 0 rate = 0 time = 0 on= True classes_numericas= '' transferir= 0 on_off = True quantia = 0 while True: oque_fazer=input('voce quer fazer "E"mprestimo, ver sua "C"onta, "P"agar o emprestimo: (E/C/P) ou "sair": ') if oque_fazer == 'E': valor_do_emprestimo = (input('qual o valor do emprestimo: ')) if valor_do_emprestimo > 0: conta = conta + int(valor_do_emprestimo) dívida=dívida - int(valor_do_emprestimo) print(f'valor de {valor_do_emprestimo} R$ foi para sua conta') elif valor_do_emprestimo < 0: print ('o valor nao pode ser menor que 0') elif oque_fazer == 'C': #mais ou menos finalizado print(f'o valor na sua conta
Continue reading on Dev.to Python
Opens in a new tab


