How to add counties name to my database? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to add counties name to my database?

I wrote a code and I got few countries in my database, is there a way to import or use api to add all countries to my database? https://code.sololearn.com/c3yM5qZj433W/?ref=app

30th Sep 2021, 9:12 PM
Shaho Farivar
Shaho Farivar - avatar
3 Answers
+ 1
https://code.sololearn.com/cdq92xc9Ik8T/?ref=app
30th Sep 2021, 11:10 PM
Vitaly Sokol
Vitaly Sokol - avatar
+ 1
Thanx mate
1st Oct 2021, 12:04 AM
Shaho Farivar
Shaho Farivar - avatar
0
I tried but couldnt make it, how to save names in a dict or tuple then random.choice it?
1st Oct 2021, 3:38 PM
Shaho Farivar
Shaho Farivar - avatar