diff --git a/1ano/README.md b/1ano/README.md index b279da9..925f87c 100755 --- a/1ano/README.md +++ b/1ano/README.md @@ -6,5 +6,11 @@ - [Introdução à Engenharia Informática](https://github.com/TiagoRG/uaveiro-leci/tree/master/1ano/iei) | Ano de conclusão: 2022/2023 - [Introdução aos Sistemas Digitais](https://github.com/TiagoRG/uaveiro-leci/tree/master/1ano/isd) | Ano de conclusão: 2022/2023 +### 2º Semestre + +- [Programação Orientada a Objetos](https://github.com/TiagoRG/uaveiro-leci/tree/master/1ano/poo) +- [Laboratórios de Informática](https://github.com/TiagoRG/uaveiro-leci/tree/master/1ano/labi) +- [Laboratório de Sistemas Digitais](https://github.com/TiagoRG/uaveiro-leci/tree/master/1ano/lsd) + --- *Pode conter erros, caso encontre algum, crie um* [*ticket*](https://github.com/TiagoRG/uaveiro-leci/issues/new) diff --git a/1ano/fp/extra3/ex11.py b/1ano/fp/extra3/ex11.py index eea9be7..6292b2c 100644 --- a/1ano/fp/extra3/ex11.py +++ b/1ano/fp/extra3/ex11.py @@ -1,11 +1,4 @@ def onlyCaps(s): # NOTE: ch.isupper() -> True if ch is uppercase. - if len(s) == 0: - return "" - if len(s) == 1: - return s if s.isupper() else "" - return s[0] + onlyCaps(s[1:]) if s[0].isupper() else onlyCaps(s[1:]) + return (s if len(s) == 0 or (len(s) == 1 and s.isupper()) else "") if len(s) <= 1 else (s[0] + onlyCaps(s[1:]) if s[0].isupper() else onlyCaps(s[1:])) - -print(onlyCaps("John Fitzgerald Kennedy")) -print(onlyCaps("")) diff --git a/1ano/isd/quartus-projects/AdderDemo/AdderDemo.qws b/1ano/isd/quartus-projects/AdderDemo/AdderDemo.qws index 2864c4f..8a9126b 100644 Binary files a/1ano/isd/quartus-projects/AdderDemo/AdderDemo.qws and b/1ano/isd/quartus-projects/AdderDemo/AdderDemo.qws differ diff --git a/1ano/isd/quartus-projects/AdderDemo/db/AdderDemo.db_info b/1ano/isd/quartus-projects/AdderDemo/db/AdderDemo.db_info index 0e5e69c..1772d20 100644 --- a/1ano/isd/quartus-projects/AdderDemo/db/AdderDemo.db_info +++ b/1ano/isd/quartus-projects/AdderDemo/db/AdderDemo.db_info @@ -1,3 +1,3 @@ Quartus_Version = Version 20.1.1 Build 720 11/11/2020 SJ Lite Edition Version_Index = 520278016 -Creation_Time = Thu Dec 1 16:34:59 2022 +Creation_Time = Wed Jan 18 13:25:36 2023