resultset

How do I evaluate a Sympy function in Python?

How do I evaluate a Sympy function in Python? Question: I am facing a major issues in python using sympy. I didn’t find any solutions to my problem or at least, I couldn’t apply the solutions I found on my problem. import sympy as sp import math as ma import numpy as np E1=72500 A1=15 …

Total answers: 1

How do I get href value instead of the text from a result set?

How do I get href value instead of the text from a result set? Question: I’m using print(d.contents) My print loop prints the following ResultSets: [<a href="Property.aspx?pi=cd1a0b90-07aa-ec11-aa4c-246e960cbc4d" title="3 Bedroom House For Sale In Anthoupoli, Nicosia">3 Bedroom House For Sale In Anthoupoli, Nicosia</a>] [<a href="Property.aspx?pi=c42dc379-5f67-e811-bb4e-a4badb3ceace" title="2 Storey Modern 3 Bedroom House For Sale In Dali Area">2 …

Total answers: 1

How to check if a result set is empty?

How to check if a result set is empty? Question: I have a sql statement that returns no hits. For example, ‘select * from TAB where 1 = 2′. I want to check how many rows are returned, cursor.execute(query_sql) rs = cursor.fetchall() Here I get already exception: “(0, ‘No result set’)” How can I prevend …

Total answers: 9