[Pere] error handling lab#15
Open
perikoloso wants to merge 1 commit intoIronhack-data-bcn-oct-2023:mainfrom
Open
[Pere] error handling lab#15perikoloso wants to merge 1 commit intoIronhack-data-bcn-oct-2023:mainfrom
perikoloso wants to merge 1 commit intoIronhack-data-bcn-oct-2023:mainfrom
Conversation
|
Hola Pere:) Un plaer corregir un lab tan ben fet, FELICITATS! Ademés has fet el BONUS!!!!!!! Olé. Et deixo uns detalls (sense importància). Bona feina, de debò. 🙌🏼
non_vowels = [i for i in teststring if i not in ('a','e','i','o','u') and i != ' ']
print(non_vowels)Correctísima tu respuesta! Te dejo un pequeño tip!!!! Si añades
Idem que en ejercicio anterior:) Puedes añadir
def int_to_2(x):
return x**2
while True:
x = input("Please, enter a number ")
try:
i = int(x)
i = int_to_2(i)
print(f"Well done! The square is: {i}")
break
except ValueError:
print("Please enter a number.")Super! Pero tu código no imprime el resultado final. Si añades esto en tu print A por el siguiente laaaaab!!! 👏🏼 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

No description provided.