- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Setup Python and VS code. What is IDE?
Setup Python and VS code. What is IDE?
Steps to setup python and vs code:
Step 1: Download Python for Windows : https://www.python.org/downloads/
Once the download is complete, run the installer program. On Windows, it will typically be a .exe file.
Step 2: Download vs code(visual studio code) for Windows :https://code.visualstudio.com/download
Once the download is complete, run the vs .exe file to install.
step 3: Open VS code and add Python Debugger extension
#code for number guessing game:
import random
def guess_your_number():
print(“guess a number between 1 and 10.”)
# randint(p1, p2) generate a random number between given parameters
lucky_number = random.randint(1, 10)
attempts = 0
while True:
your_guess = int(input(“Enter your guess: “))
attempts += 1
if your_guess less than lucky_number:
print(“Try again larger than”, your_guess)
elif your_guess great than lucky_number:
print(“Try again smaller than”, your_guess)
else:
print(f”All right! You guessed the number {lucky_number} in {attempts} attempts.”)
break
# Run the game
if __name__ == “__main__”:
guess_your_number()
.
.
.
#coding #programming #computerprogramming #programminglanguage #learncoding #basic #computerknowledge #firstcodingclass #python #c #helloworld #codingclass #logicclassforgeeks
Coding | Program | programming | coding class | logicclassforgeeks | learn coding
Видео Setup Python and VS code. What is IDE? канала Logic Class for Geeks
Steps to setup python and vs code:
Step 1: Download Python for Windows : https://www.python.org/downloads/
Once the download is complete, run the installer program. On Windows, it will typically be a .exe file.
Step 2: Download vs code(visual studio code) for Windows :https://code.visualstudio.com/download
Once the download is complete, run the vs .exe file to install.
step 3: Open VS code and add Python Debugger extension
#code for number guessing game:
import random
def guess_your_number():
print(“guess a number between 1 and 10.”)
# randint(p1, p2) generate a random number between given parameters
lucky_number = random.randint(1, 10)
attempts = 0
while True:
your_guess = int(input(“Enter your guess: “))
attempts += 1
if your_guess less than lucky_number:
print(“Try again larger than”, your_guess)
elif your_guess great than lucky_number:
print(“Try again smaller than”, your_guess)
else:
print(f”All right! You guessed the number {lucky_number} in {attempts} attempts.”)
break
# Run the game
if __name__ == “__main__”:
guess_your_number()
.
.
.
#coding #programming #computerprogramming #programminglanguage #learncoding #basic #computerknowledge #firstcodingclass #python #c #helloworld #codingclass #logicclassforgeeks
Coding | Program | programming | coding class | logicclassforgeeks | learn coding
Видео Setup Python and VS code. What is IDE? канала Logic Class for Geeks
Комментарии отсутствуют
Информация о видео
14 сентября 2025 г. 11:25:40
00:04:59
Другие видео канала




















