Thank you Anvea your videos are brilliant. Everyone remember to like, click the share button (even if you don't send it it helps to click) and sit through a couple of ads if you can!
You’re most welcome! Thank you for your kind words. I’m working on the DNA problem set solution now. Hoping to get it posted by the end of the week! :)
hey, hope you have recovered from Covid. I was wondering if there was a bug in DNA as I've written a code for it which returns correct on all of check50's test except 18 which returns harry , but check50 says it should return no match. Upon debugging and inspection I found that the information I got ( for harry's data and the strs) was entirely from cs50's provided material and so it should return harry. Did you face a similar problem?
Hey! Yes I have. Thank you for your message. Am looking to post DNA within the next 1-2 days. I managed to pass all of check50’s tests for dna using the distribution code that they gave (I.e the longest_match function). We can compare the solutions we got after I post it up! :)
Hey! I'm editing the slides for DNA at the moment and was playing around with my program. For the portion #Check database for matching profiles, do you have a section that says something like - if person[subsequence] == result[subsequence]: match +=1 Running the above will causes a return of "no match." If you modify it to: if int(person[subsequence]) == result[subsequence]: match +=1 Then it returns Harry. Would this solve the error you are facing?
@@Anvea No, for the "check database for matching profiles" part I have a for loop iterating over the indexes of my list (I created a list of dictionaries for the database) which prints the name of the person when all of their strs' match with the DNA sequences str numbers. It looks like this: #get length of list and iterate over it for i in range(len(data)): #check if str values match if data[i]["AGATC"] == frequency_AGATC and data[i]["AATG"] == frequency_AATG and data[i]["TATC"] == frequency_TATC: #if they do print name of person print(data[i]["name"]) return 0 #else print no match print("No match") return 1
another way this could be done is count total characters,spaces, punctuation(sentences), other(comma, semicolon, etc) and subtract those values from the total character count to get the number of letters in the text
Hi! Hoping you'll finish the entire CS50 2022 catalog, you're so helpful. I'm stuck on week 09. I'll patiently wait until you get there. Thank you.
Thank you Anvea your videos are brilliant. Everyone remember to like, click the share button (even if you don't send it it helps to click) and sit through a couple of ads if you can!
Thank you so much for your message! I’m glad you find the videos helpful. And I appreciate it when you spend time on the ads! It does help a lot :’)
Love your voice, thanks for the help
are we assuming that laws of PMDAS apply inside the parenthesis for the index?
Interesting how you added the alpha function
thank you so much this helped a lot I'm looking forward to the DNA video because I'm kinda stuck on it lol
You’re most welcome! Thank you for your kind words. I’m working on the DNA problem set solution now. Hoping to get it posted by the end of the week! :)
@@Anvea yes pleeeeeeeeeeeeeeeeeeeeease also love your vids they are a great help.
hey, hope you have recovered from Covid. I was wondering if there was a bug in DNA as I've written a code for it which returns correct on all of check50's test except 18 which returns harry , but check50 says it should return no match. Upon debugging and inspection I found that the information I got ( for harry's data and the strs) was entirely from cs50's provided material and so it should return harry. Did you face a similar problem?
Hey! Yes I have. Thank you for your message. Am looking to post DNA within the next 1-2 days. I managed to pass all of check50’s tests for dna using the distribution code that they gave (I.e the longest_match function). We can compare the solutions we got after I post it up! :)
@@Anvea sounds great, looking forward for the new video
Hey! I'm editing the slides for DNA at the moment and was playing around with my program.
For the portion #Check database for matching profiles, do you have a section that says something like -
if person[subsequence] == result[subsequence]:
match +=1
Running the above will causes a return of "no match." If you modify it to:
if int(person[subsequence]) == result[subsequence]:
match +=1
Then it returns Harry. Would this solve the error you are facing?
@@Anvea No, for the "check database for matching profiles" part I have a for loop iterating over the indexes of my list (I created a list of dictionaries for the database) which prints the name of the person when all of their strs' match with the DNA sequences str numbers. It looks like this:
#get length of list and iterate over it
for i in range(len(data)):
#check if str values match
if data[i]["AGATC"] == frequency_AGATC and data[i]["AATG"] == frequency_AATG and data[i]["TATC"] == frequency_TATC:
#if they do print name of person
print(data[i]["name"])
return 0
#else print no match
print("No match")
return 1
another way this could be done is count total characters,spaces, punctuation(sentences), other(comma, semicolon, etc) and subtract those values from the total character count to get the number of letters in the text
I love the dog pics haahha
Pleasseeeee i need dna, im really stucked
Hi! I’m working on it! I just tested positive for Covid :’) and am down for the week. Hope to post it next week!
@@Anvea ohh sorry to hear that :( hope you feel better!
hi, just checking up on you
😠 thanks..... but she's mine