Hello guys, welcome again. Today we are going to solve a simple problem from the internet "THE SNAKE" problem.
You can find the problem by the link below: -
https://edabit.com/challenge/Y5Ji2HDn...
In this problem:
This challenge is based on the classic videogame "Snake".
Assume the game screen is an n * n square, and the snake starts the game with length 1 (i.e. just the head) positioned on the top left corner.
In this version of the game, the length of the snake doubles each time it eats food (e.g. if the length is 4, after eating it becomes 8).
Create a function that takes the side n of the game screen and returns the number of times the snake can eat before it runs out of space in the game screen.
Used Library and Topics:
Library - None
Topics: List, Loops, and Strings
Chapters By timestamp:
00:00 - 00:22 - Introduction of video
00:22 - 02:14 - Introduction Of Problem
02:14 - 02:45 - Taking input from the user
02:45 - 03:38 - Running a while Loop from 1 to n*n
03:38 - 04:46 - Snake able to eat and Expand & Adding to counter
04:46 - 07:08 - Testing program and corrections
BE MY FRIEND:
🌍Check my website: https://thecodepanda.in/
📸Add me on Instagram: / thecodepanda.in
📕Add me on Facebook: / thecodepanda.in
ABOUT MY CHANNEL:
Hi! I’m The Code Panda. On my channel, you will find Programming videos. We love sharing Python, Java, C, C++ Tutorials & programs with you guys as we experience them ourselves.
Watch Complete Python Series :
• Introduction To Python : What's inside thi...
Watch Complete Playlist :
• Python Daily Programs
Subscribe here to see more of my videos in your feed!
/ @thecodepanda
Feel free to add me on Instagram/Facebook/Reddit/Vk: thecodepanda.in
#dailyprogrammingproblem #pythonpracticeprograms #practicepythondaily
#programming problems in Python, #dynamic programming problems in python, #linear programming problems in python, #simple programming problems in python, #solving linear programming problems in python, #programming problems and solutions in python, #programming questions in python for beginners, #programming problems for beginners python, #how to start programming in python for beginners, #how to code in python beginners, #how to program python for beginners, #programming problems in python, #programming challenges in python, #programming practice in python, #python programming problems and solutions, #python programming problems and solutions pdf, #programming questions in python for an interview, #programming problems for python, #coding problems for python, #programming challenges python GCSE, #what are the interview questions for python, #can I use python for a coding interview, #how to learn python for an interview, #how to prepare for a python coding interview, #python programming problems pdf, #problem solving python programming, #python programming problems with solutions, #programming questions on python, #coding problems on python
Информация по комментариям в разработке