lundi 9 juillet 2018

Is it possible to create a Python function that can randomly generate names and numbers?

I am beginner in Python and I want to write a method that saves contacts with randomly generated names and numbers.

For example:

contact_count = 3 and generating & saving 3 random contacts

I am thinking on using random.randrange() method but I cannot Pythonize my thoughts. Am I correct?

Can you guys help me to write this function?

Thanks..




Aucun commentaire:

Enregistrer un commentaire