Hack A Lapp/Introduction to Bitcoins Lightning Network App Development/C-Lightning with python/Ask your customer to pay with bitcoins lightning network by creating a lightning invoice/quiz

{What is the correct syntax to create an invoice in python? - -  +  -
 * type="[]"}
 * the invoice function takes at least the three arguments, amount, label and description
 * no this function does not exist
 * right on spot!

{looking at the pylightning api client we find the declaration of the invoice function: : What does that tell us? - The invoice needs to have 6 arguments + The invoice can have up to 6 arguments + The invoice must have at least 3 arguments
 * type="[]"}
 * No it can have up to 6 arguments. Arguments that have a standard value provided are optional.
 * True the arguments set to None are optional
 * True!

{If you don't provide the expire argument, how long will the invoice be valid? - Forever, since it does not expire - 144 Block times + 1 Hour
 * type="[]"}
 * No it can have up to 6 arguments. Arguments that have a standard value provided are optional.
 * no this is usually the time lock for the breach remedy transactions
 * yes if no argument is given the standard value will be 3600 seconds.

{you have successfully invoked the .invoice RPC-function and stored the object to the variable called. How do you print the bolt11 string? + -  -  -
 * type="[]"}
 * Yes
 * no this lists an entire dictionary of more meta data related to the invoice
 * no such method exits
 * no such method exits

{initiating the rpc interface with  we need to pass a string as an argument. Which value should the string be given? + the local path the the lightning-rpc file - publickey of your lightning node followed by its IP address and port - some unique identifier for your pythong programm to be able to access the interface
 * type="[]"}
 * yes this file ist most likely stored in
 * would be pretty bad if one could just connect any given lightning node out there!
 * no it will be accessed via the created object