gpt3-python-doc-qa icon indicating copy to clipboard operation
gpt3-python-doc-qa copied to clipboard

COMP1021 Any question about python? I read all python doc and will give you answer!

Open hunkim opened this issue 4 years ago • 65 comments

How to split a string?

hunkim avatar Apr 25 '21 22:04 hunkim

[GPT3]

@hunkim How to split a string?

Use the split() method of a string.

hunkim avatar Apr 25 '21 22:04 hunkim

How many arguments do we need for rstrip()?

hunkim avatar Apr 26 '21 00:04 hunkim

@hunkim How many arguments do we need for rstrip()?

ironmansung avatar Apr 26 '21 00:04 ironmansung

How to save a file?

hunkim avatar Apr 26 '21 02:04 hunkim

@hunkim How to save a file?

Save the file.

ironmansung avatar Apr 26 '21 02:04 ironmansung

What is the method to save a file?

hunkim avatar Apr 26 '21 02:04 hunkim

@hunkim What is the method to save a file?

Save the current window with a Save As dialog.

ironmansung avatar Apr 26 '21 02:04 ironmansung

What does import do?

hunkim avatar Apr 26 '21 02:04 hunkim

@hunkim What does import do?

It imports a module.

ironmansung avatar Apr 26 '21 02:04 ironmansung

How to import a module?

hunkim avatar Apr 26 '21 02:04 hunkim

@hunkim How to import a module?

Import the module.

ironmansung avatar Apr 26 '21 02:04 ironmansung

How to open a file to write text?

hunkim avatar Apr 26 '21 04:04 hunkim

@hunkim How to open a file to write text?

open("filename", "w")

ironmansung avatar Apr 26 '21 04:04 ironmansung

How to open a file to read?

hunkim avatar Apr 26 '21 04:04 hunkim

@hunkim How to open a file to read?

open("filename", "r")

ironmansung avatar Apr 26 '21 04:04 ironmansung

How to use turtle.write?

hkpeterpeter avatar Apr 26 '21 05:04 hkpeterpeter

@hkpeterpeter How to use turtle.write?

How to use turtle.write?

ironmansung avatar Apr 26 '21 05:04 ironmansung

How to use range?

hkpeterpeter avatar Apr 26 '21 05:04 hkpeterpeter

@hkpeterpeter How to use range?

Use range to find the range of a set of numbers.

ironmansung avatar Apr 26 '21 05:04 ironmansung

How to use randint?

hkpeterpeter avatar Apr 26 '21 05:04 hkpeterpeter

@hkpeterpeter How to use randint?

randint(a, b)

ironmansung avatar Apr 26 '21 05:04 ironmansung

what is random.random()

linyongver avatar Apr 26 '21 05:04 linyongver

@linyongver what is random.random()

random.random()

ironmansung avatar Apr 26 '21 05:04 ironmansung

how to use concat two lists

dongkyunk avatar Apr 26 '21 08:04 dongkyunk

@dongkyuk how to use append two lists

Use the append function.

ironmansung avatar Apr 26 '21 08:04 ironmansung

how to concat two lists

dongkyunk avatar Apr 26 '21 08:04 dongkyunk

@dongkyuk how to concat two lists

ironmansung avatar Apr 26 '21 08:04 ironmansung

how to print formatted text?

skyer9 avatar Apr 26 '21 09:04 skyer9

@skyer9 how to print formatted text?

Use the "print()" function.

ironmansung avatar Apr 26 '21 09:04 ironmansung

what is deep copy?

skyer9 avatar Apr 26 '21 09:04 skyer9