Posts by Yander Alves • 57 points
3 posts
-
0
votes1
answer54
viewsQ: How to handle errors if the user enters an invalid character?
I wanted to do in the notes entry part, and in the final part of showing each student’s grades individually, something similar to what I did in the 'Want to continue? [S/N]', that is, only step…
-
2
votes2
answers187
viewsQ: How to check if the typed string is only '0' and '1'?
I want to validate if the typed string represents a binary number, but the way I did is not working very well: binario = str(input('Binário: ')) if '01' in binario: quebrar_string = [c for c in…
-
-2
votes1
answer63
viewsQ: What is the code for "par = par + 1"?
#include<stdio.h> #include<locale.h> int main(){ int par=0, num, i; setlocale(LC_ALL,"Portuguese"); for (i=1; i<=10; i++){ …
casked Yander Alves 57