Python Program to create a dictionary having state names and their capitals, #anjaliluthra #python

preview_player
Показать описание
Subscribe the Channel for all Study Material related to Computer Science – B.C.A., B.Tech., M.C.A., M.Tech., B.Sc. and M.Sc. Computer Science and Class XI , XII. Placement Training and Competitive Exam Training is provided too.
For one to one online coaching email me or text me at below given contact information

Facebook Page :

All education and study material provided on this channel is Free, but if you want to Contribute towards free education for poor slum area kids in India provided by our education trust named SET Paytm your donations at 9205955418
A small amount from you can bring a big change in someone's life.

Complete Study material for BCA Entrance Exam :

Data Structures and Algorithms,College Placements,Computer Science Campus Placements,How to prepare for campus placements,How to become a programmer,Stack and Operations,How to learn programming, Applied Computer Science, Artificial Intelligence, Coding, Computer Engineering, Computer Networking, Design and Analysis of Algorithms, Data Structures, Digital Electronics, Object Oriented Programming using C++, Java , Python. Discrete Mathematics, Operating System Concepts, Artificial Intelligence, Application Programming Interface, Apache, Tomcat, API, Applets, Web site development, PHP, JavaScript, Client Side Scripting, Server Side Scripting, System Architecture, Data Bases, Normalisation, Data Independance
Рекомендации по теме
Комментарии
Автор

S={}
n=int(input("How many states are there? "))
for i in range(n):
st, cp=eval(input("State name, capital name: "))
S[st]=cp
print(S)

Write this program... It is correct.
Put the names in colon

Elisa_miki
Автор

Thank you mam . Please upload more videos for c++ as u r god for cs . Your videos for c++ is a blessing 🙏

bhawnawadhwamathstutorials
Автор

Mam, pls upload videos for c++ programming . Ur explanations are awesome 🙏

vedparkashwadhwa
Автор

Aapki Geo jitni kharab hai python utni hi aachi hai 👍👍

shivamsingh-zwsh
Автор

Ma'am what is before "states" in the third last line and how to apply it??

robinrajkujur
Автор

Ma’am now its done! I’ve to take raw input instead of input

mananscocgaming
Автор

Mam, I miss ur videos for c++ programming 🙁. Pls upload for c++🙏

bhawnawadhwamathstutorials
Автор

Hello mam, can you help me out with this question?
python program to input sections and stream and store it in a dictionary. Also search and print stream of a particular section.

furiousgamer
Автор

Ma’am mine is not working! When i enter state name, it shows it’s not defined

mananscocgaming
Автор

Mam, pls upload videos for c++ programming . U r god of computer education 🙏♥️

umawadhwa
Автор

Create a dictionary to hold 5 states and their capitals.
Keep going until the user wishes to stop
Ask the user to enter a state
If the state is in the table
display the capital.
Else
Allow the user to enter a new state and capital to the dictionary
Print the new dictionary
Print the final dictionary. How do I do this in python?

adammohammed
Автор

Mam I am a non maths  student . And some coaching institutes are telling that only maths of class 11 and 12 will come and some are telling class 11 and 12 maths +small portion of normal maths like percentage, ages,ratio, profit and loss etc. Means (quantative aptitude) will also come . 

Mam pls tell me only maths syllabus for entrance exam of BCA for iup universities.

mohitkumar.