Hot answers tagged

2 votes
Accepted

How to convert a 'list' into an int

From the Hints section of the spec: If str is a SELECT, then execute returns a list of zero or more dict objects, inside of which are keys and values representing a table’s fields and cells, ...
user avatar
1 vote

Prompt for integer > 2 and < 8 in C

This worked while (n > 8 || n < 2)
user avatar
1 vote

How to find the length of a number

I took a copy of the number, and in a loop divided the copy by 10 until it was 0 (integer by integer division truncates the result, ignoring any fractional part, the result of such division is integer ...
user avatar
  • 20.7k

Only top scored, non community-wiki answers of a minimum length are eligible