In networkx, in order to draw Erdos Renyi graph there is a function ‘gnp random graph(n,p)’. What are n and p here?
1 point
Which of the following is NOT a Graph visualisation software/tool?
1 point
What is the output of the following code snippet?
import networkx as nx
G=nx.Graph()
print(G.nodes())
1 point
What is the output of the following program?
import networkx as nx
G=nx.path_graph(4)
print(G.nodes())
1 point
If the area of India is 10400 km2 , calculate the area of Maharashtra. (If points are placed randomly in the map of India, then number of points in
India(except Maharashtra) is 90 and number of points in Maharashtra is 23.)
India(except Maharashtra) is 90 and number of points in Maharashtra is 23.)
1 point
Sentence tokenisation is possible through NLTK in Python.
1 point
Stylometry is based on the observation that authors tend to write in unique ways
1 point
What should be the output of the following program?
import network as nx
G=nx.Graph()
for i in range(3):
G.add node(i)
G.add edge(1,2)
G.add edge(2,3)
G.add edge(1,3)
nx.draw()
1 point
What should be passed as an argument in the function given below?
G.add_nodes_from(*)
import string
ReplyDeletes = input()
dict ={}
t = ""
dig = []
digi = {}
for c in range(len(string.ascii_letters)):
dict[string.ascii_letters[c]] = string.ascii_letters[c]
for c in range(len(string.digits)):
digi[string.digits[c]] = string.digits[c]
for i in range(len(s)):
x = s[i]
if x not in dict and x in digi:
t=t+x
if x in dict:
if (t!=""):
dig.append(int(t))
t = ""
print(max(dig),end='')
this code is passed the public test but showing wrong ans in private test
week 9 programming assignmet 2
help me out
Sir can you post assignment 10 of joy of computing python
ReplyDelete