73426/how-to-access-a-module-written-in-python-from-c
Can anyone tell how to access a module written in Python from C?
Hey, @Roshni:
You can access a module written in Python from C by the following method,
Module = =PyImport_ImportModule("<modulename>");
dic={"car":["limo","sedan"]} print (dic.keys()) <-----------------------Fetch the key "car" print (dic['car'][0]) <------------------------Fetch ...READ MORE
Hi, there is a very simple solution ...READ MORE
Hi! In PyCharm, you can add any number ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
You can simply the built-in function in ...READ MORE
Hey, Web scraping is a technique to automatically ...READ MORE
Strings in Python are immutable (can't be changed). Because ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.