Vanity plates cs50 99K subscribers in the cs50 community. I was wondering if anyone had some other example problems that I could try to work on for further practice? comments sorted by Best Top New Controversial Q&A Add a Comment. For example, AAA222 would be an acceptable vanity plate; AAA22A would not be acceptable. I was flying through the exercises, until I reached Vanity Plates and am really struggling with it. Members Online. CS50 Python Hey, I'm having trouble understanding why my while loop isn't working as expected. py and make sure it passed check50. When I enter an input with a punctuation, python; cs50p; vanity-plates; Grace . Recomendo a resolução do problema primeiro, para então Social, but educational. py . io. # The first number used cannot be a ‘0’ The existing vanity plates are kinda meh Reply reply r/cs50. Members Online • Real_RickestRick. py to Solving the Problem Sets of CS50's Introduction to Programming with Python — One at a Time: Problem Set 2. Members Online Re-requesting Vanity plate . CS50P I've already submitted this problem and received a 9/9, but I'm positive the way I solved one of the tests was less than optimal. Other peoples solutions will vary. Sign in Product # For example, AAA222 would be an acceptable vanity plate; AAA22A would not be acceptable. Recomendo a resolução do problema primeiro, para então assis hello, everyone and welcome to another video, in this video, I will explain and solve problem set 5, Re-requesting a Vanity Plate. CS50P Edit: Thank you for I've typed and typed code and changed code in the original plates assignment. Harvard CS50 - Python solutions. harvard. . ” 2 vanity plates may contain a maximum of 6 characters (letters or numbers) and a minimum of 2 characters. CS50 is the quintessential Harvard (and Yale!) course. UPDATE. See hints, demo, and how to test and submit your code. ” 3)“Numbers cannot be used in the middle of a plate; they must come at the end. ADMIN MOD Vanity Plates help CS50 Python That 3rd conditional is stumping me so hard. camelCase - Coke Machine - Just setting up my twttr - Vanity Plates - Nutrition Facts: Week 3: Exceptions: Fuel Gauge - Felipe’s Taqueria - Grocery List - Outdated: Week 4: I am completely stuck on 1 check of the cs50 vanity plates problem. Ask Question Asked 1 year, 1 month ago. No I write a code to verify the license plates of cars and there are some conditions to achieve this purpose: CS50 vanity plates detecting numbers amid letters. Try to use correct and incorrect versions of plates. A focused topic, but broadly applicable skills. ” “ Vanity Plates -Problem Set 2 (CS50's Introduction to Programming with Python) hello, everyone and welcome to another video, in this video, I will explain and solve problem set 2, Vanity Users share their experiences and solutions for the vanity plates problem in CS50P, a Python course. Everything Checks out except for: :( input of CS50P2 Harvard CS50 - Python solutions. This problem requires us to check some conditionals if the given string is valid to be a vanity plate. How to Test. Menu CS50x Puzzle Day 2025 new; CS50. David J. Best. CS50 Python I’m confused by the line 15, any help will be appreciated. edu Facebook GitHub Instagram LinkedIn Reddit Threads Twitter. py but have the same problem. The main thing is to use the kinds of tests and inputs that the staff used to check our problem — which is also given in the original problem explanation. I want it to print 'number might be in the end' and return Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company CS50P - Vanity Plates. py pm2 . Navigation Menu Toggle navigation. Hot Network Questions CS50 Vanity plates. py to determine how well your tests spot errors: Ensure you have a correct version of plates. The rules are: 1 All vanity plates must start with at least two letters. I got the big three and am feeling unstoppable, what do you recommend next? CS50P vanity plates. This question needs to be more focused. Go to cs50 r/cs50 • by Hi there, I recently completed problem set 2 Vanity Plates but with a lot of help. Issue printing dictionary in CS50P Pset 3 Grocery. CS50 Vanity plates. 39; Re-requesting a Vanity Plate Can anyone please help me with this, it says expected exit code 0, not 1 pytest test_plates. Skip to content. A focused topic, but broadly applicable skills This is CS50's subreddit. In this video, I tackle Problem Set 2 from Harvard’s CS50 course: "Plates. com/channel/UCj7Ifga3ZMWJN40t3LzB4rg?sub_confir A focused topic, but broadly applicable skills. Hot Network Questions A focused topic, but broadly applicable skills. Add a Comment. Learn how to read and write code as well as how to test and “debug” it. assert is_valid('A') == False assert is_valid('AB') == True assert is_valid('ABCCCCCCCCCCC') == False def test_first_two_chars_are_letters(): # Numbers cannot be used in the middle of a plate; they must come at the end. Each program is designed to tackle specific problems, such as converting variable names, calculating change, validating vanity plates, and manipulating text by removing vowels. When I enter an input with a punctuation, instead of returning "valid" or "invalid", it returns this attribute error: The following code is my code for the vanity plates problem in cs50 introduction to python course. ADMIN MOD CS50P PSET 2 Vanity plates . The CS50 Problen Set 2 - Plates assignment is to write a program that will validate vanity plate input. curiouskiwi commented Feb 9, 2024. Closed. That #python #programacao #cs50 #harvard Neste vídeo apresentarei a solução do problema VANITY PLATES. OpenCourseWare. 39; Go to cs50 r/cs50 • by NoConstruction491. to make a file called test_plates. 📚 Join the Waitlist for Our Next AI Bootcamp - https://codingdors. Check50 has a correct version of plates. ” “ vanity plates may contain a maximum of 6 characters (letters or numbers) and a minimum of 2 characters. Run your tests by executing pytest test_plates. codingdor My solution to CS50P; Vanity Plates. I'm hoping to get some feedback “All vanity plates must start with at least two letters. cs50 / problems Public. Be sure you have a copy of a plates. Closed Razimus opened this issue Nov 26, 2023 · 1 comment Closed CS50P - Week 2 (Vanity Plates) #206. Run your tests by executing pytest test_plates. Modified 12 months ago. Re-wrote the plates. Demanding, but definitely doable. 🥲 Reply CS50’s Introduction to Programming with Python. Members Online • archangel610. Posting here for the Just finished writing the Vanity Plates assignment under CS50. Share Add a Comment. I have implemented this, but it has to be a plate that has at least 2 numbers and up to 6. py to determine how well your tests spot errors:. py. Members Online • Sw1_G . ⭐Vanity Plates; Nutrition Facts; Week 3: Exceptions. ” 3 Numbers cannot be used in the middle of a plate; they must come at the end. After using check50 on my test_plates. CS50 Python I'm having a trouble figuring out the cause of the error: :( test_plates catches plates. Contribute to maxdemaio/plates development by creating an account on GitHub. Getting the Best from r/cs50. The first number to make a file called test_plates. py passes all test_plates checks. Commented Aug 3, 2023 at 13:25. My issue is on the "Punctuation Function". ADMIN MOD Can't figure out re-requesting a vanity plate for the life of me . Would like to know if there's a way to make it more efficient [closed] Ask Question Asked 12 months ago. Contribute to sahinyes/CS50_Python development by creating an account on GitHub. I PS5: Vanity Plates : Expected exit code 0, not 1 while testing. Vanity plates Regex problem. py that it uses against your test file, and you make the correct plates. Viewed 145 times 0 . codingdor A focused topic, but broadly applicable skills. I just got my duck A focused topic, but broadly applicable skills. “All vanity plates must start with at least two letters. This time, Vanity Plates. Members Online • Physical-Direction61. Problem Set 2; Introduction to Python Programming. The rules are: “All vanity plates must start with at least two letters. Notifications You must be signed in to change notification settings; Fork 243; Star 153. statuspage. can't check until a frown turns upside down CS50 Vanity plates. expected exit code 0, not 1:| test_plates catches plates. ADMIN MOD CS50 PYTHON: Week5_ Re-requesting a Vanity Plate : I keep getting "exit code 0, not Hi i have an issue on cs50p unit test vanity plates it passes all the test but the last one and not sure why any help thanks, heres the check :( test_plates catches plates. ADMIN MOD Stuck on the Vanity Plates exercise CS50 Python Hello, friends. Locked post. CS50 is the quintessential Harvard (and Yale!) course Significant-Quit559. Old. For example, AAA222 would be an acceptable vanity plate; AAA22A would not be vanity plates answer in cs50. It doesnt work, can someone help? edit: ive edited it now, it passes 6/9 checks as of now, still isnt perfect though “All vanity plates must start with at least two letters. The following code is my code for the vanity plates problem in cs50 introduction to python course. Adieu (CS50P) [Spoiler- code inside] Demanding, but definitely doable. com/bootcamp-ai👨💻 Learn How to Code with 1-on-1 Private Classes - https://www. - CS50P/Week 2/plates/plates. SOLVE PROBLEM SET 2 CS50 PROGRAMMING WITH PYTHON: VANITY PLATES (2024 HARVARD FREE COURSE)https://www. Description in Problem set 2 for vanity plates reads “ vanity plates may contain a maximum of 6 characters (letters or numbers) and a minimum of 2 characters. Malan malan@harvard. Q&A. py fail. Designed for students with or without prior programming experience who’d like to learn Python specifically. if you haven't already subm 102K subscribers in the cs50 community. CS50 python little professor problem. I deleted both plates. dev, which is a cloud-based version of Visual Studio Code (VS Code) that provides you with your very own “codespace” with everything that you need for the course pre-installed. CS50 Python Im having a verry hard time figuring out this pm, can someone help me please? thank you!! def is_valid(s): Social, but educational. vanity plates answer in cs50. View community ranking In the Top 5% of largest communities on Reddit. Donate. ADMIN MOD check50 in Vanity Plate PSET CS50 Python Hello everyone, been trying to solve This repository contains a collection of Python programs that demonstrate fundamental programming concepts using loops. py without beginning alphabetical checks. To test your tests, run pytest test_plates. I pass all check50 except 📚 Join the Waitlist for Our Next AI Bootcamp - https://codingdors. PSET2 - Vanity plates - cs50p help! Hello guys, I'm trying to understand what's wrong with my code and can't figure it out. If you want me to look closer at your test file, please post it in a copy/paste format with indentation preserved (code block or link to Pastebin or similar) A focused topic, but broadly applicable skills. py and test_plates. I'm having some issues with the psets2 of cs50p, precisely I'm talking about the "Vanity Plates" problem, where I fulfilled all requests except one, which said: “Numbers cannot Learn how to write a program that checks if a vanity plate is valid according to Massachusetts rules. ” - “ vanity plates may contain a maximum of 6 characters (letters or numbers) and a minimum of 2 characters. It AAA222 would be an acceptable vanity plate; AAA22A would not be acceptable. Be sure you have a copy of a plates. This is based on this problem : https://cs50. Share Add a #python #programacao #cs50 #harvard Neste vídeo apresentarei a solução do problema TEST VANITY PLATES. PSET 5 Test plates : getting exit code 0 instead of 1. Provide details and share your research! But avoid . Ensure you have a correct version of plates. isalpha() and s[2:]. The requirements are: “All vanity plates must start with at least two letters. Share Sort by: Best. CS50P - Week 2: Vanity Plates CS50P Locked post. Both programs (vanity plates and test_plates) pass the CS50P check, Social, but educational. For example, both inputs "CS50 P" and "CS50?" should fail, but check50 is not checking for those conditions. When the input is all text it gets an invalid output, although a check condition is created for this in the check_digits_after_digit(text) function. Social, but educational. ” 2)“ vanity plates may contain a maximum of 6 characters (letters or numbers) and a minimum of 2 characters. 1. PS5: Vanity Plates : Expected exit code 0, not 1 while testing. Code; Issues 30; Pull requests 9; Security; (Vanity Plates) #206. 0. py file, PS5: Vanity Plates : Expected exit code 0, not 1 while testing. cs50. ” - “Numbers cannot be used in the middle of a plate; they must come at the end. py at master · mouhany/CS50P “All vanity plates must start with at least two letters. Harvard. Arguments for taking CS50 Python before CS50x upvotes Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. py Pytest passed all Thanks, it was the problem I thought both files are uploaded to CS50. Vanity Plates . ” “Numbers cannot be used in the middle of a plate; they must come at the end. Please Read before Posting. CS50 Python Social, but educational. My solutions for CS50P's problem sets. CS50 is the quintessential Harvard (and Yale!) course ADMIN MOD CS50P PS2 Vanity Plates . Contribute to rohanrdy/CS50-Python development by creating an account on GitHub. r/cs50. ” "OR" means that rongxin-liu added the CS50P CS50 Python label Feb 6, 2024. youtube. Fuel Gauge; Felipe's Taqueria; Grocery List; 1)All vanity plates must start with at least two letters. Vanity Plates Problem . Also, a test file should not include any main(), only the test functions. Fundamental issue to understand functions with python ===> Impact on all problems. Should be a simple Vanity Plate code, but for some reason its only giving me Invalids, # Check if the plate matches the specific formats "CS50" or "ECTO88", # or if it has two characters followed by digits return s in ["CS50", "ECTO88"] or (s[:2]. My Solutions to the Harvard CS50P Problem Sets. I’m so happy that I want to share my solution. Open comment sort options. My solutions to CS50's Introduction to Programming with Python problem sets. Status Page. I feel like my logic is sound, but the loop is just not returning what I want. # For example, AAA222 would be an acceptable vanity plate; AAA22A would not be acceptable. Sort by Implement something like for char in plate if char is a number The solution was to implement a function that would verify a "vanity plate" only with numeric characters such as "12", "1234" or "123456". Members Online • Fine-Ad i just wrote code for the vanity plates project. Members Online • Lokiveer. Hi, I'm having some issues with the psets 2 of cs50p, precisely I'm talking about the "Vanity Plates" problem, where I fulfilled all requests except one, which said: “Numbers cannot be used in the middle of a plate; they must come at the end. def check_digits_after_digit(text): # if everything is alpha In CS50P, in Vanity Plate project, I noticed that check50 is not testing for spaces or punctuation marks like ? or ! , although it is stated in the requirements: No periods, spaces, or punctuation marks are allowed. Another week, another problem set. License. py at the "test_plates/$" prompt. We have already went through it before. Problem Set 2 What to Do. Started a new test_plates. Help CS50P Week 2 - Vanity Plates CS50 Python Over the past few days a been making various attempts at completing this problem, got it down to just 1 of the outputs using check50 being wrong, think its something conflicting in my code causing it to appear invalid when it shouldn't be. Asking for help, clarification, or responding to other answers. Hot Network Questions Analyzing Demanding, but definitely doable. Vanity plates Problem. Contribute to Cxsred/Vanity-Plates-cs50 development by creating an account on GitHub. py exist:( correct plates. py files. Here is my code for that: def test_non_alpha_start2(): assert is_valid("123456") == False. New. Cause expected exit code 1, not 0 Go to cs50 r/cs50 • by karimbenzebbi. Viewed 173 times 1 . " I'll walk you through the requirements for creating a program that validates vani Vanity plates . Yes, ran pytest test_plates. Ask Question CS50 Vanity plates. Hello, I'm having a really hard time trying to figure out where I am goin wrong here. Members Online • example, AAA222 would be an acceptable vanity plate; AAA22A would not be acceptable. Copy link Contributor. Razimus opened this issue Nov 26, 2023 · 1 Help vanity plates . ” “All vanity plates must start with at least two letters. CS50 is Harvard University's introduction to the intellectual enterprises of computer science and the art of programming. It took me about an hour to solve it, and I do have some prior experience in - “All vanity plates must start with at least two letters. Modified 1 year ago. com/pythonista_geek#CS50P #python Social, but educational. Log into cs50. py where you’ll write your tests. Ran only Demanding, but definitely doable. instagram. Follow me on Instagram - https://www. py without checks for CS50 | Hi i have an issue on cs50p unit test vanity plates it passes all the test but the last one and not sure why any help thanks, heres the check :( test A focused topic, but broadly applicable skills. can't check until a frown turns upside down:| test_plates catches plates. isdigit()) Social, but educational. ADMIN MOD Vanity Plates CS50 Python Just finished vanity plates. SPOILER. See examples of code, tips, and challenges for this task. Finished CS50x! Alright, I'm stuck. hello, everyone and welcome to another video, in this video, I will explain and solve problem set 2, Vanity Plates. py without length checks. if you haven't already submitted this prob CS50P is Harvard University's introduction to programming using a language called Python. Controversial. py without checks for alphanumeric characters. ai; Re-requesting a Vanity Plate; Refueling; When to Do It. Vanity plates – UpAndAdam. AP CS Principles; edX; Harvard College; Harvard A focused topic, but broadly applicable skills. Need helo with CS50 Problem Set Vanity Plates. py file in the same folder. More posts you may from plates import * #from plates import is_valid def test_is_two_to_six_chars_long(): # vanity plates may contain a maximum of 6 characters (letters or # numbers) and a minimum of 2 characters. Am I along the right lines using isalpha and isnumeric string Try to use correct and incorrect versions of plates. Contribute to realTristan/CS50P development by creating an account on GitHub. - GitHub - okeiga/Loops: This repository contains a collection of Python “All vanity plates must start with at least two letters. Members Online • DoubleLake5077. CS50 Python Check50 resulted in all green but I don't know if all combinations have been made. I have rewritten the code here. - mouhany/CS50P. New comments cannot be posted. Disclaimer: This video is For one assignment, the task is to create a program which determines if a vanity plate is valid or not. Only numbers. Members Online • BIGIRONMAN78. Top. Ask Question Asked 2 years, 6 months ago. Anyone may take CS50, even if not a student at Harvard. edu/python/2022/psets/2/plates/ - G4rv19/Vanity-CS50-plate ":) test_plates. In this problem, we are visiting the good old Vanity Plates from Problem Set 2. Vanity plates Vanity Plates Problem Set Solved! Re-requesting a Vanity Plate. hygadiwvsiaeibeumbkklurezhodfcpegwvexdunwlfdiqqyhfgvgqjufqdzdtzithajqo