Message from Python discussions
November 2018
— I could return False but i don't think it makes sense
I'm a bit confused of what exactly you want, is session.query returning None when there is no data?
if that's the case just use if data is not None: do the rest of the script
the function will return None by itslef if the output of session.query is None
— If it's returning an error when no data found about user_id u don't even need the None here just use try except
— ???
— Жəке Елеукенович:
Help me.
Given an integer N and letter C. Print the string of length N containing only C's.
5,A
— Read the rules
— Knock knock
— If you don’t show some code u tried no one will help, help urself first
— Hello
— Hi
—
my_list = []
for i in range(0,3)
number = int(input("Enter a number: "))
print(my_list.append(number))
— Guys pls whats wrong with this code? its not printing out the list