Posts by w_yll • 80 points
4 posts
-
2
votes2
answers126
viewsQ: Adding elements to a dictionary only if the key does not exist
I have to create a function that adds the data of a new student to a dictionary. Entree: students: dictionary with the students' data name: student name (key) notes: list of a student’s grades…
-
2
votes1
answer4221
viewsA: How to turn a list into dataframe pandas?
do not forget to convert list to numpy arraye after reshape n = pd.DataFrame(np.array(lista).reshape(3,3), columns = list("ABC")) print (n) A B C 0 1 2 3 1 4 5 6 2 7 8 9…
-
1
votes2
answers95
viewsA: Display alert in case of no record found - Ireport
Miguel I believe it is so if(empty($nome1) or empty($nome2)){ echo "<script>alert('Nenhum campo pode fica vazio.');top.location.href='index.php' ;</script>"; } source…
-
1
votes1
answer143
viewsQ: Captures what the user types and writes to a . TXT
I made a little program in Jframe, basically it captures what the user types and writes to a txt, but when I see the contents of the file is written, the following "null". What might be going on?…