MCPcopy Create free account
hub / github.com/geekcomputers/Python / random_sentence

Function random_sentence

random-sentences.py:20–31  ·  view source on GitHub ↗

Creates random and return sentences.

()

Source from the content-addressed store, hash-verified

18
19
20def random_sentence():
21 """Creates random and return sentences."""
22 return (
23 "{} {} {} {} {} {}".format(
24 article[random_int()],
25 noun[random_int()],
26 verb[random_int()],
27 preposition[random_int()],
28 article[random_int()],
29 noun[random_int()],
30 )
31 ).capitalize()
32
33
34# prints random sentences

Callers 1

Calls 1

random_intFunction · 0.85

Tested by

no test coverage detected