import random from datetime import datetime, timedelta # Define the current date current_date = datetime.today() # Define age range in years min_age = 30 max_age = 60 # Generate 100 random birthdays for people aged between 30 and 60 birthdays = [] for _ in range(100): # Random age in days age_in_days = random.randint(min_age * 365, max_age * 365) birthday = current_date - timedelta(days=age_in_days) birthdays.append(birthday.strftime('%Y-%m-%d')) # Print the list of birthdays for b in birthdays: print(b) import random from datetime import datetime, timedelta # Define the current date current_date = datetime.today() # Define age range in years min_age = 30 max_age = 60 # Generate 100 random birthdays for people aged between 30 and 60 birthdays = [] for _ in range(100): # Random age in days age_in_days = random.randint(min_age * 365, max_age * 365) birthday = current_date - timedelta(days=age_in_days) birthdays.append(birthday.strftime('%Y-%m-%d')) # Print the list of birthdays for b in birthdays: print(b) import random from datetime import datetime, timedelta # Define the current date current_date = datetime.today() # Define age range in years min_age = 30 max_age = 60 # Generate 100 random birthdays for people aged between 30 and 60 birthdays = [] for _ in range(100): # Random age in days age_in_days = random.randint(min_age * 365, max_age * 365) birthday = current_date - timedelta(days=age_in_days) birthdays.append(birthday.strftime('%Y-%m-%d')) # Print the list of birthdays for b in birthdays: print(b)
Standard input is empty
1973-04-25 1967-04-17 1971-02-06 1992-07-13 1983-09-21 1987-08-02 1990-09-11 1974-12-06 1968-09-03 1984-02-25 1982-02-28 1987-07-09 1991-11-03 1979-10-19 1965-08-19 1971-05-27 1985-12-10 1973-05-05 1980-01-31 1984-12-08 1988-09-29 1967-02-10 1987-09-07 1977-12-30 1981-10-25 1983-06-20 1988-07-13 1976-10-05 1988-09-30 1976-08-26 1973-07-20 1968-06-01 1984-06-09 1992-06-18 1993-02-15 1990-04-28 1975-01-30 1987-10-22 1980-07-31 1972-06-10 1993-04-05 1970-09-07 1966-02-28 1982-08-12 1988-05-20 1989-05-01 1975-08-08 1981-12-29 1966-08-21 1993-04-06 1982-08-02 1966-06-06 1988-01-16 1988-09-29 1968-05-19 1972-10-25 1971-01-01 1993-01-05 1979-01-10 1981-10-10 1982-03-24 1990-02-09 1981-12-31 1992-06-16 1970-09-13 1989-06-26 1967-02-12 1969-03-05 1973-01-06 1967-01-02 1984-07-27 1976-10-27 1982-09-07 1968-09-11 1984-04-05 1988-02-15 1976-01-16 1991-05-01 1986-01-15 1967-01-14 1968-10-07 1979-01-20 1994-02-13 1966-10-14 1973-09-17 1979-06-19 1989-08-06 1986-04-20 1965-10-22 1988-01-08 1988-12-15 1971-10-01 1967-12-28 1991-08-31 1983-06-05 1967-03-13 1993-02-04 1985-12-18 1984-02-26 1985-01-20 1976-06-21 1980-09-26 1992-04-30 1994-02-03 1969-01-15 1965-11-03 1982-06-26 1966-10-11 1994-02-17 1988-02-27 1990-01-04 1993-07-19 1971-09-30 1990-03-07 1979-03-11 1969-09-03 1977-09-25 1985-03-24 1969-04-09 1977-05-30 1971-01-04 1979-11-11 1976-05-20 1987-09-14 1968-07-02 1979-09-24 1988-01-30 1988-08-27 1984-12-14 1987-07-02 1969-06-20 1981-06-01 1981-04-04 1974-08-02 1987-07-15 1976-05-01 1982-12-10 1977-08-25 1994-01-16 1988-09-21 1973-08-20 1992-09-30 1966-11-06 1982-09-22 1988-02-07 1988-04-16 1971-07-15 1985-12-05 1977-02-24 1968-06-23 1979-12-18 1984-09-02 1983-03-09 1981-12-13 1994-01-31 1988-06-21 1980-06-25 1967-12-19 1977-08-10 1965-07-20 1968-02-17 1982-08-05 1991-06-02 1984-05-28 1991-05-05 1966-02-06 1994-08-30 1978-09-25 1988-02-06 1993-03-23 1991-04-26 1978-06-08 1980-05-29 1981-12-02 1988-09-02 1978-06-02 1994-08-10 1966-03-08 1984-08-28 1987-06-24 1970-08-11 1969-05-09 1978-04-02 1980-08-08 1974-02-04 1973-01-04 1975-04-12 1974-09-21 1965-11-09 1975-06-25 1981-04-26 1976-09-15 1977-06-21 1966-07-28 1976-12-16 1978-02-09 1965-07-30 1994-04-21 1965-07-09 1987-11-10 1972-07-20 1968-02-10 1981-04-03 1987-03-11 1971-07-09 1989-03-20 1969-01-10 1971-03-26 1990-04-19 1987-02-11 1973-05-24 1970-08-23 1989-09-06 1975-09-13 1973-04-12 1976-08-07 1971-07-05 1982-12-19 1985-10-15 1977-09-23 1994-12-06 1966-09-22 1981-04-05 1968-10-22 1976-04-21 1968-12-05 1982-04-26 1986-06-25 1975-03-03 1980-03-28 1979-09-24 1973-03-12 1970-08-03 1988-09-26 1989-02-11 1983-06-01 1966-01-07 1977-08-01 1971-04-08 1982-07-03 1990-04-19 1977-11-09 1983-03-03 1983-02-23 1973-03-30 1989-03-23 1991-10-13 1983-03-02 1973-06-16 1970-05-09 1977-08-05 1977-02-22 1986-12-27 1990-03-10 1981-07-22 1981-07-02 1971-01-22 1993-04-10 1975-03-16 1986-06-08 1975-12-08 1968-07-07 1969-05-31 1970-08-19 1979-08-31 1974-12-13 1988-12-20 1972-08-07 1974-06-26 1989-07-22 1987-05-28 1970-09-04 1975-01-25 1994-01-01 1979-06-19 1973-11-23 1982-02-02 1989-07-22 1978-12-11 1995-06-02 1976-12-19 1993-10-26 1989-08-29 1991-12-18 1992-12-11 1969-04-06 1972-01-16 1979-09-07 1972-09-14 1983-05-21 1983-02-16 1970-01-06 1990-09-18 1968-12-22 1972-01-21 1991-01-02 1966-11-27 1974-02-16 1992-04-25 1987-11-24