Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cálculo de tempo de vida em python #6

Open
EndPoint-dev-Brazil opened this issue Dec 20, 2022 · 0 comments
Open

Cálculo de tempo de vida em python #6

EndPoint-dev-Brazil opened this issue Dec 20, 2022 · 0 comments

Comments

@EndPoint-dev-Brazil
Copy link
Owner

Cálculo com estimativas da sua vida criado em python.

an = int(input ("Digite ano Atual:")) 
nv = int(input ( "Ano do seu Nascimento:"))

sub = (an - nv)
subb = (sub * 365)
meses = (sub * 12 )
semanas = (365/7)*sub
print('sua idade é: {:_^13}✓, \n Quantidade de dias de vida é: {:_^13}✓, \n Meses de vida é: {:_^13}✓, \n semanas de vida é: {:.0f}✓' .format (sub, subb, meses, semanas))


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant