See debugging question guidelines for more info. If you got an error, include the full error message. The output you expected, and what you got instead.
A minimal, easily runnable, and well-formatted program that illustrates your problem.If you need help debugging, you must include:
Welcome to LearnProgramming! New? READ ME FIRST! Posting guidelines Frequently asked questions Subreddit rules Message the moderators Asking debugging questions