<jupyter_start><jupyter_text>**Electrostatic force between the charges**The Coulomb's force between two charges $q_1$ and $q_2$ separated at distance $r$ is given by;$F=k\\{q_1q_2}/{r^2}$  where $k=9*10^9 Nm^2/C^2$Write a code for function to calculate the Coulomb's force between two given charges at given distance .Use list to calculate the variation of Coulomb's force between two charges(as you like) place at a range of distance (choose range in your favour).Make a plot that shows the variation of Coulomb's force with distance using list. Let the two charges be q1=C and q2=2C;<jupyter_code>#Function to calculate the Coulomb's force
k = 9*10^9
def force(r,q1,q2):
    return(k*q1*q2/(r^2))
#Range of distance
F = []
R = []
q1 = 1
q2 = 2
for r in range(10,1000):
    F.append(force(r,q1,q2))
    R.append(r)
#Plot between range of distance and Coulomb's force
import matplotlib.pyplot as plt
% matplotlib inline
plt.plot(F,R) 
plt.plot(R,F)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10940695296523517, 'fraction_numerical': 0.03578732106339468, 'mean_word_length': 5.080745341614906, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '579836', 'license': 'MIT', 'n_tokens_mistral': 371, 'n_tokens_neox': 337, 'n_words': 126, 'path': 'python homework.ipynb', 'repo_name': 'puspasharma/Python-homeworks', 'size': '978'}