- Le pida al usuario una cantidad 'N' de materias, para luego preguntarle por el nombre y la nota de cada materia.
- Mostrarle al usuario la nota y materia en la que obtuvo su mayor nota.
- Mostrarle al usuario el promedio de notas.
This file contains 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
class Card: | |
def __init__(self, value, suit): | |
self.value = value | |
self.suit = suit | |
def __str__(self): | |
return f"{self.value} of {self.suit}" | |
def __repr__(self): |
- Le pida al usuario ingresar un numero N
- Para luego ingresar le pida ingresar N nombres de amigos
- Que luego le pregunte por el nombre de un amigo en particular, para mostrarle cuantos amigos con ese nombre tiene.
This file contains 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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.10; | |
contract Superhero{ | |
string private _name; | |
mapping(string => int) private _poderes; | |
address private _owner; | |
constructor(string memory name_){ |
This file contains 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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.10; | |
contract Superheroe{ | |
string private _name; | |
mapping(string => uint) private _poderes; | |
address private _owner; | |
constructor(string memory name_){ |
This file contains 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
# Cheat Sheet Python TE 2022 | |
# Como mostrabamos por consola en C# | |
# Console.WriteLine(); | |
# En python: | |
print("Hola 4A") | |
# Como declarabamos y asignamos una variable en C# | |
# string miNombre = "Chona"; |
This file contains 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
/* | |
BUG HUNT 4D | |
El programa resuelve lo siguiente: | |
El curso comienza con nota 0; | |
Cada alumno ingresa su nota mas reciente, | |
la cual vale una fraccion de la cantidad de alumnos del curso, | |
y se le suma a la nota total del curso. | |
This file contains 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
public class MedicalShifts implements Comparable<MedicalShifts> { | |
String name; | |
int id; | |
public MedicalShifts(String n, int i){ | |
this.name = n; | |
this.id = i; |