В PyCharm
#!/usr/bin/python
# -*- coding: utf-8 -*-
print("Choose the language // Выберите язык")
language = int(input("English - 0 // Русский - 1: "))
if language == 0:
n = int(input("Enter the number of minutes you want convert into hours: "))
print("hours:", n // 60, "\nminutes:", n % 60)
else:
n = int(input("Введите количество минут, которые хотите перевести в часы: "))
print("часы:", n // 60, "минуты:", n % 60)
Вывод в терминале
sorax@Sorax-PC:~/PycharmProjects/Best$ python /home/sorax/PycharmProjects/Best/Minutes_to_hour.pyChoose the language // Выберите язык
English - 0 // Русский - 1: 1
Введите количество минут, которые хотите перевести в часы: 5343
('\xd1\x87\xd0\xb0\xd1\x81\xd1\x8b:', 89, '\xd0\xbc\xd0\xb8\xd0\xbd\xd1\x83\xd1\x82\xd1\x8b:', 3)
Вариант с англ языком вывод
sorax@Sorax-PC:~/PycharmProjects/Best$ python /home/sorax/PycharmProjects/Best/Minutes_to_hour.py
Choose the language // Выберите язык
English - 0 // Русский - 1: 0
Enter the number of minutes you want convert into hours: 12423
('hours:', 207, '\nminutes:', 3)
sorax@Sorax-PC:~/PycharmProjects/Best$