hebemiley
Profilo di
Nome | hebemiley |
---|---|
Indirizzo email | n/a |
Messaggi | 3 |
-
- 2024-12-23 03:32:07
- Re: Generatore di istogrammi
- Forum >> Principianti
-
Here's an example of how you can define the histogram function:
python
def histogram(list):
for number in list:
print('*' * number)
# Example usage
histogram([3, 5, 2, 4])
This code prints a histogram of Sprunked asterisks based on the numbers in the list. Good luck!
-
- 2024-12-23 03:30:38
- Re: Verifica funzionamento di un filtro
- Forum >> Programmazione Python >> Calcolo scientifico
-
With open("list.txt", "r") as file:
s = file.read().replace('\r\n', '\n').replace('\r', '\n')
lines = s.split('\n')
for i in lines:
print('ITA,' + i + ',GER')
This uses string concatenation to Incredibox Mustard format the output as desired. Happy coding!
-
- 2024-12-23 03:29:08
- Re: Installazione pygame tramite terminale macbook
- Forum >> Programmazione Python >> Videogames
- Buongiorno! Stelle sicher, dass Python und pip korrekt installiert sind. Versuche, den Befehl mit python3 -m pip install Doodle Jump pygame auszuführen. Überprüfe auch, ob du die richtigen Berechtigungen hast!