I am doing a Coursera course, working with Python and SQL databases. The code further below is largely example code from the course. I have to alter it for an assignment.
The part which I do not completely understand is this part:
What I do understand is that the if clause looks if the email address is already there and adds if it is not, and increases the count if it is. However I do not fully understand what it is "SELECTING" and what is is fetching (fetchone). I have some questions about this.
Can someone explain to me intuitively how this part works?
I am normally used to using print statements to see what is happening. Is there a similar approach here that I can use to see what I am doing?
As a last small question in the code ''' is used for the SQL but also a single ' , for example in the first line above (They also give different colours in my Notepad++). Is there any difference between these to?
Note - I am using Python 3.6
asked Jun 18 '17 at 16:22
1,27144 silver badges1616 bronze badges
- What is a boolean expression in code
- What is your review of Zendesk Voice
- Who was this female lost cosmonaut
- What do wise men say
- Will corruption be decreased by demonitisation
- How do endogenic and exogenic forces differ
- How old am I 2
- How do I create a Bitcon account
- What is a Maharaj Dashrath
- What is planning commission
- Where I can get lehenga for party
- What American cities today have Greek names
- When will my baby say mama
- What are examples of future goals
- How can we apply for OT
- Are you good at math
- Is it easy to learn testing tools
- What if prone masturbation is okay