aula00 added

This commit is contained in:
TiagoRG 2023-01-30 22:54:24 +00:00
parent 3acd1aa27e
commit ce6b6a3ba4
5 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PySciProjectComponent">
<option name="PY_SCI_VIEW_SUGGESTED" value="true" />
</component>
</project>

Binary file not shown.

View File

@ -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 |

View File

@ -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)

View File

@ -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))