diff --git a/1ano/1semestre/fp/.idea/other.xml b/1ano/1semestre/fp/.idea/other.xml new file mode 100644 index 0000000..a708ec7 --- /dev/null +++ b/1ano/1semestre/fp/.idea/other.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/1ano/1semestre/fp/aula00/aula00.pdf b/1ano/1semestre/fp/aula00/aula00.pdf new file mode 100644 index 0000000..569dc8a Binary files /dev/null and b/1ano/1semestre/fp/aula00/aula00.pdf differ diff --git a/1ano/1semestre/fp/aula00/ex04.md b/1ano/1semestre/fp/aula00/ex04.md new file mode 100644 index 0000000..3174cee --- /dev/null +++ b/1ano/1semestre/fp/aula00/ex04.md @@ -0,0 +1,12 @@ +| Expressão | Valor | Tipo | +|---------------|-----------|-----------| +| 1 + 2 * 5 | 11 | int | +| 17 / 3.0 | 5.666667 | float | +| 17 / 3 | 5.666667 | float | +| 17 // 3 | 5 | int | +| 17 % 3.0 | 2.0 | float | +| 5.0 / 0.75 | 6.666667 | float | +| 5.0 // 0.75 | 6.0 | float | +| 'tau' + 'rus' | 'taurus' | str | +| 'tau' + 2 | ? | TypeError | +| 'tau' * 2 | 'tautau' | str | \ No newline at end of file diff --git a/1ano/1semestre/fp/aula00/retangulo.py b/1ano/1semestre/fp/aula00/retangulo.py new file mode 100644 index 0000000..53164cc --- /dev/null +++ b/1ano/1semestre/fp/aula00/retangulo.py @@ -0,0 +1,8 @@ +largura = float(input("Largura? ")) +altura = float(input("Altura? ")) + +area = largura * altura +perimetro = largura*2 + altura*2 + +print("Area:", area) +print("Perimetro:", perimetro) diff --git a/1ano/1semestre/fp/aula00/welcome.py b/1ano/1semestre/fp/aula00/welcome.py new file mode 100644 index 0000000..de7f7d8 --- /dev/null +++ b/1ano/1semestre/fp/aula00/welcome.py @@ -0,0 +1,12 @@ +# coding: utf-8 + +# Execute the program and see what happens. +# Then modify the program so that X is replaced by the course input. +# Hint: see what we did with the name and surname. + +name = input("Primeiro nome? ") +surname = input("Apelido? ") +course = input("Curso? ") + +print("Olá {} {}!\nBem vindo ao curso de {}!".format(name, surname, course)) +