Skip to content

Commit 10c9088

Browse files
authored
Pet exercise (#24)
* Delete file Untitled. * Finished topics of dictionaries * A some modifications in dictionaries * A some modifications about set. * Finished first exercise * Exercise Set manipulation in Python * Operations with Sets in Python * Other Functions and Methods * Exercise with other functions and methods on set concepts in Python. * Imutabilidade e Frozensets * Limitations of a set * Resolving a some works * Finished an exercise about set Limitations in Python * Finished first exercise Number Analysis * Finished class about Set and init class Matrices * (1 topic of matrices) Initializing the two matrices and the result matrix Using loops are nested to subtract corresponding elements * Sum of Even Numbers in a 4x4 Matrix * Finished Matrices and Average of Grades * Array of strings * Exercise - Electronic Urn with Matrices * Exercise: Reserve Cinema Seats using Arrays * Finished a program of Tic-tac-toe. * Finished simulate exercise people routine * Methods Defining and calling methods of a class * Pet exercise
1 parent 98d5bc9 commit 10c9088

File tree

7 files changed

+1752
-915
lines changed

7 files changed

+1752
-915
lines changed

.hintrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

1_section_Programming_logic/Dictionaries.ipynb

Lines changed: 10 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -2396,7 +2396,7 @@
23962396
},
23972397
{
23982398
"cell_type": "code",
2399-
"execution_count": 4,
2399+
"execution_count": 1,
24002400
"id": "97c8c4e0",
24012401
"metadata": {},
24022402
"outputs": [
@@ -2413,23 +2413,9 @@
24132413
"5. Sair\n",
24142414
"Escolha uma opção: 1\n",
24152415
"\n",
2416-
"Digite o nome do contato: A\n",
2417-
"Digite o número de telefone: 778787\n",
2418-
"{'A': '778787'}\n",
2419-
"\n",
2420-
"Contato adicionado com sucesso!\n",
2421-
"\n",
2422-
"MENU:\n",
2423-
"1. Adicionar contato\n",
2424-
"2. Alterar contato\n",
2425-
"3. Remover contato\n",
2426-
"4. Listar contatos\n",
2427-
"5. Sair\n",
2428-
"Escolha uma opção: 1\n",
2429-
"\n",
2430-
"Digite o nome do contato: Bia\n",
2431-
"Digite o número de telefone: 78787\n",
2432-
"{'A': '778787', 'Bia': '78787'}\n",
2416+
"Digite o nome do contato: Steve\n",
2417+
"Digite o número de telefone: 55554555\n",
2418+
"{'Steve': '55554555'}\n",
24332419
"\n",
24342420
"Contato adicionado com sucesso!\n",
24352421
"\n",
@@ -2439,51 +2425,9 @@
24392425
"3. Remover contato\n",
24402426
"4. Listar contatos\n",
24412427
"5. Sair\n",
2442-
"Escolha uma opção: 4\n",
2443-
"\n",
2444-
"Nome: A\n",
2445-
"Telefone: 778787\n",
2446-
"\n",
2447-
"Nome: Bia\n",
2448-
"Telefone: 78787\n",
2449-
"\n",
2450-
"MENU:\n",
2451-
"1. Adicionar contato\n",
2452-
"2. Alterar contato\n",
2453-
"3. Remover contato\n",
2454-
"4. Listar contatos\n",
2455-
"5. Sair\n",
2456-
"Escolha uma opção: 2\n",
2457-
"\n",
2458-
"Digite o nome do contato que deseja alterar: A\n",
2459-
"Digite o novo nome para o contato (deixe em branco para manter o nome atual): Amanda\n",
2460-
"Digite o novo número de telefone (deixe em branco para manter o atual): 5659\n",
2461-
"\n",
2462-
"Contato atualizado com sucesso!\n",
2463-
"\n",
2464-
"MENU:\n",
2465-
"1. Adicionar contato\n",
2466-
"2. Alterar contato\n",
2467-
"3. Remover contato\n",
2468-
"4. Listar contatos\n",
2469-
"5. Sair\n",
2470-
"Escolha uma opção: 4\n",
2471-
"\n",
2472-
"Nome: Bia\n",
2473-
"Telefone: 78787\n",
2474-
"\n",
2475-
"Nome: Amanda\n",
2476-
"Telefone: 5659\n",
2477-
"\n",
2478-
"MENU:\n",
2479-
"1. Adicionar contato\n",
2480-
"2. Alterar contato\n",
2481-
"3. Remover contato\n",
2482-
"4. Listar contatos\n",
2483-
"5. Sair\n",
24842428
"Escolha uma opção: 3\n",
24852429
"\n",
2486-
"Digite o nome do contato que deseja remover: Bia\n",
2430+
"Digite o nome do contato que deseja remover: Steve\n",
24872431
"\n",
24882432
"Contato removido com sucesso!\n",
24892433
"\n",
@@ -2493,16 +2437,6 @@
24932437
"3. Remover contato\n",
24942438
"4. Listar contatos\n",
24952439
"5. Sair\n",
2496-
"Escolha uma opção: 9\n",
2497-
"\n",
2498-
"Opção inválida!\n",
2499-
"\n",
2500-
"MENU:\n",
2501-
"1. Adicionar contato\n",
2502-
"2. Alterar contato\n",
2503-
"3. Remover contato\n",
2504-
"4. Listar contatos\n",
2505-
"5. Sair\n",
25062440
"Escolha uma opção: 5\n"
25072441
]
25082442
}
@@ -2679,12 +2613,14 @@
26792613
" # Se o usuário escolher uma opção que não está no menu:\n",
26802614
" else:\n",
26812615
" \n",
2682-
" # Exibe uma mensagem de erro.\n",
2683-
" print(\"\\nOpção inválida!\")\n",
2616+
" # Exibe uma mensagem de erro:\n",
2617+
" \n",
2618+
" print(\"\\nDigite a opção comforme a tabela mostra:\")\n",
26842619
"\n",
26852620
"\n",
26862621
"# Chama a função principal para executar o programa\n",
2687-
"main()\n"
2622+
"main()\n",
2623+
" \n"
26882624
]
26892625
},
26902626
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy