generated from reprograma/onX-sx-temaX
-
Notifications
You must be signed in to change notification settings - Fork 42
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
atividade feita #34
Open
tengsammy
wants to merge
1
commit into
reprograma:main
Choose a base branch
from
tengsammy:samanthatarefa
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
atividade feita #34
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
entrada1= input("Informe o primeiro valor: ") | ||
entrada2= input("Informw o segundo valor: ") | ||
|
||
print (type(entrada1)) | ||
print (type(entrada2)) | ||
|
||
concat = entrada1+entrada2 | ||
print ("Valor da variavel :", concat) | ||
print ( "O tipo do concat é:", type (concat)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#numérico - int e float | ||
|
||
print ("Olá mundo!") | ||
print (3*3) | ||
print (type (3)) | ||
print (type (3.9)) | ||
|
||
numero1 = 1 | ||
print (numero1) | ||
print (type (numero1)) | ||
print ("O tipo de variável numero é:", type (numero1)) | ||
|
||
numero2 = 7.4 | ||
print (numero2) | ||
print (type (numero2)) | ||
print ("O tipo de variável numero é:", type (numero2)) | ||
|
||
soma = numero1+numero2 | ||
print (soma) | ||
print (type(soma)) | ||
print ("O tipo de variável soma é:", type (soma)) | ||
|
||
#booleano | ||
trouxe_carteira = False | ||
print ("O tipo de variável trouxe_carteira é:", type (trouxe_carteira)) | ||
|
||
#string | ||
texto = "valor do texto" | ||
print (texto) | ||
print ( " O tipo de variável de texto é: ", type(texto)) | ||
|
||
# "Na madrugada abandonada", PERLLA | ||
citacao = '"Na madrugada, abandona, cê não atende o celular ", PERLLA' | ||
print (citacao) | ||
print ( "O valor da citação é:", type (citacao)) | ||
|
||
#inputs | ||
entrada = input() | ||
print ("O valor do input é: ", entrada) | ||
|
||
nome = input ( "Digite seu nome") | ||
idade = input ("Digite sua idade") | ||
|
||
print ( nome, ",", idade) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#Exercício Prof. | ||
nome = "samantha" | ||
|
||
print ( "Olá mundo,", nome) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import math | ||
|
||
print (math.ceil(10/3)) #arredonda pra cima | ||
print (math.floor(10/3)) #arredonda pra baixo | ||
|
||
numero_decimal = 1.8942384023 | ||
print (math.trunc(numero_decimal)) # numero inteiro, sem quebrados | ||
|
||
x = 2 * (4+8) | ||
y = 2*4+8 | ||
print (x) | ||
print (y) | ||
|
||
#eu ganho 5000 | ||
#meu esposo ganha 7000 | ||
#qual a renda da minha casa? | ||
#qual a renda média de todos os salários? | ||
|
||
salario_meu = 5000 | ||
salario_esposo = 7000 | ||
renda_da_casa = (salario_meu+salario_esposo) | ||
print ("A renda total da casa é", renda_da_casa) | ||
|
||
media_salario = ((salario_meu+salario_esposo)/2) | ||
print ("O salário médio da casa é:", media_salario) | ||
|
||
#ou | ||
media_salario = ((renda_da_casa)/2) | ||
print ("O salário médio da casa é:", media_salario) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#Existem para os tipos int e float | ||
#soma x+y | ||
#sub x-y | ||
#multiplicacao x*y | ||
#divisao x/y | ||
#potenciacao x**y - um elevado ao outro | ||
#operacao de resto x%y | ||
#round - valor arredondado - round(resultado,quantas casa quer) | ||
|
||
print (1+1) | ||
print (1-1) | ||
print (1*1) | ||
print (1/1) | ||
print (1**1) | ||
print (1%1) | ||
exemplo = 10/3 | ||
valor_redondo = round (exemplo, 3) | ||
print (valor_redondo) | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
nome = "Samantha" | ||
sobrenome = "Teng" | ||
|
||
print (nome+sobrenome) | ||
print (nome, sobrenome) | ||
print ('O nome dela é' ,(nome, sobrenome)) #não entendi porque executou as a aspa simples | ||
print (nome, sobrenome) | ||
|
||
conteudo = "Meu ano de nascimento é " + str(1996) | ||
ano_nascimento = 1996 | ||
print (conteudo) | ||
|
||
|
||
salario= int(input( "Digite seu salário:" )) | ||
salario_ano = salario*12 | ||
print (salario) | ||
print (salario_ano) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
print ("Bem vinda a calculadora da Samantha!") | ||
print ("Por aqui, só trabalhamos com números inteiros, ok?") | ||
x= int(input("Escolha um número de 0 a 10:" )) | ||
y= int (input("Escolha outro número de 0 a 10:" )) | ||
|
||
soma = x+y | ||
print ("A soma dos seus números é:", soma) | ||
eh_impar = soma%2 | ||
print ("O número", soma, " é ímpar?", bool( eh_impar) ) | ||
|
||
sub = x-y | ||
print ("A subtração dos seus números é:", sub) | ||
eh_impar1 = sub%2 | ||
print ("O número", sub, " é ímpar?", bool( eh_impar1) ) | ||
|
||
mult = x*y | ||
print ("O valor dos números multiplicados é :", mult) | ||
eh_impar2 = mult%2 | ||
print ("O número", mult, " é ímpar?", bool( eh_impar2) ) | ||
|
||
|
||
div = x/y | ||
print ("O valor dos números divididos é :", div) | ||
eh_impar3 = div%2 | ||
print ("O número", div, " é ímpar?", bool( eh_impar3) ) | ||
|
||
pot = x**y | ||
print ("O valor de exponenciação dos números é:", pot) | ||
eh_impar4 = pot%2 | ||
print ("O número", pot, " é ímpar?", bool( eh_impar4) ) | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Iti, colocando msg fofinha pro usuário 💙