1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sladkih [1.3K]
3 years ago
11

Write a program that uses a dictionary to store students birthdays. Your program should ask the user what their name is, and loo

k it up in the dictionary . If their birthday is known, it should tell them their birthday.
Computers and Technology
1 answer:
tekilochka [14]3 years ago
3 0

di = {"student":"10/30/1984", "student2":"11/16/2020"}

name = input("What is your name? ")

if name in di:

   print(di[name])

else:

   print("Your name is not in the dictionary.")

You can change the values inside the dictionary. I hope this helps!

You might be interested in
What are the 3 main colors for a computer screen?
zhuklara [117]

Answer:

Red, Green, and Blue.

Explanation:

These colors make up white light

4 0
2 years ago
Read 2 more answers
What does the word “Gacha” come from??????
natka813 [3]

Answer:

The word gacha is derived from "gachapon", Japanese vending machines that dispense plastic capsules containing toys, which are still hugely popular in Japan today. Gachapon is the satisfying sound the machine makes when a player spins a gacha and receives a toy.

Explanation:

3 0
3 years ago
Read 2 more answers
Write a program that prompts the user to enter the minutes (e.g., 1 billion), and displays the number of years and days for the
konstantin123 [22]

Answer:

// here is code in c++.

// include headers

#include <bits/stdc++.h>

using namespace std;

// main function

int main()

{

// variables

long long int minutes,years,days;

long long int s;

cout<<"please enter the minutes:";

 // read the minutes

cin>>minutes;

 // make a copy

s=minutes;

 // calculate days

days=minutes/1440;

 // calculate years

years=days/365;

 // calculate remaining days after years

days=days%365;

// print the result

cout<<s<<" minutes is equal to "<<years<<" years "<<days<<" days."<<endl;

return 0;

}

Explanation:

Read the number of minutes from user and assign it to variable "minutes" of long long int type.Make a copy of input minutes.Then calculate total days by dividing the input minutes with 1440, because there is 1440 minutes in a day.Then find the year by dividing days with 365.Then find the remaining days and print the output.

Output:

please enter the minutes:1000000000                                                                                                                          

1000000000 minutes is equal to 1902 years 214 days.

4 0
3 years ago
Who prime minister of india​
Alex777 [14]
<h3>\mathfrak\red{✨ Answer :-}</h3>

Mr. Narendra modi is a prime Minister of Indian.

8 0
3 years ago
Read 2 more answers
PLEASE HELP
Rainbow [258]

Explanation:

examples

Area= Side Squared

area =square root of 49cm Squared =Square root of S Squared

A=7cm Squared

6 0
3 years ago
Other questions:
  • Which type of architecture places a firewall in front of the VPN to protect it from Internet-based attacks as well as behind a f
    6·1 answer
  • Photo editing can transform any image into a great photograph.
    9·1 answer
  • How do you add a section break that would start the new section on the same page?
    12·2 answers
  • A switch has just arrived from Cisco. The switch has never been configured with any VLANs, but VTP has been disabled. An enginee
    13·1 answer
  • A ________ is a gateway service that permits users to log in once, with one specific user ID and password, to gain access to mul
    8·1 answer
  • (main.c File)
    7·1 answer
  • 2. The<br>is the main and usually largest data storage hardware device in a computer​
    9·1 answer
  • An example of documentary evidence that might be presented at trial for a cyber crime is:
    9·1 answer
  • Which wireless specification can connect to a school's WLAN and connect to multimedia display projectors wirelessly?
    7·1 answer
  • OoooA,SDHVAcgacxgjcaNASAW dysdyxsgcdsgjsdgc
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!