https://github.com/gaurang-1402/earth-to-saturian-age-converter
🌍Convert Earthling's age into Saturn years
https://github.com/gaurang-1402/earth-to-saturian-age-converter
Last synced: 8 days ago
JSON representation
🌍Convert Earthling's age into Saturn years
- Host: GitHub
- URL: https://github.com/gaurang-1402/earth-to-saturian-age-converter
- Owner: Gaurang-1402
- Created: 2020-12-13T18:33:27.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-13T18:35:05.000Z (over 4 years ago)
- Last Synced: 2025-02-16T22:20:39.810Z (3 months ago)
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Problem 5: How old are Earthlings?
Using the same assumptions about Earth units as in problem 4, can you write a program to determine your Saturnian age?
In this problem, you only need to determine Saturn-years. Here's the catch: Instead of entering the Earthling's age, you
enter their birthdate (the format is **[year][month][day]**):```text
When was the Earthling you are talking to born on Earth? 19930315
This Earthling is 0.9204387024816433 Saturn-years old. How cute.
```Do this in the function **`earth_to_saturnian_age_converter`**, inside the file
**[EarthToSaturnianAgeConverter.py](EarthToSaturnianAgeConverter.py)**.**HINT**: You may not use any string methods in this problem, but modulo (`%`) and integer division (`//`) may come in
handy if you consider the birthdate (i.e. `19930315`) as an integer.