0
How download module
5 Antworten
+ 4
#You can also create module 😃
with open("__My_Module__.py", "w") as module:
module.write('''def SayHello(name):
hello = 'Hello, '+ name.capitalize()
return hello
#[This module created by MD. Ferdous Ibne Abu Bakar]''')
import __My_Module__
x = input()
print(__My_Module__.SayHello(x))
+ 3
Where? On your local computer? On sololearn playground?
https://www.geeksforgeeks.org/how-to-install-a-JUMP_LINK__&&__python__&&__JUMP_LINK-module/
https://code.sololearn.com/ckBJoTlEYWxj/?ref=app
+ 2
open your CMD on Windows or Bash on Linux and use the command:
pip install <module name>
+ 2
#Try this code:
import os
module = input()
os.system(f'pip install- qq {module}')
0
Pip install module.name