(Solved) Python String Exercise For Absolute Beginners

Python String Exercise-1 Here’s an exercise for beginners on creating and manipulating strings in Python: Create a variable called name and assign it a string value representing your name. Use the len() function to find the length of your name and assign the result to a variable called name_length. Print a message to the console … Read more

Create a CSV movies.csv to hold movie records like Movies ID Movies name and Rating (out of 5 stars) using the list.

Create a CSV movies.csv to hold movies’ records like Movies ID, Movies name, and Rating (out of 5 stars) using the list. from csv import writer import csv def create(): f = open(“e:\movies.csv”,”a”) dt = writer(f) dt.writerow([‘Movie_ID’,’Movie_Name’,’Movie_Rating’]) while True: mv_id= input(“Enter Movie ID:\t”) mv_name = input(“Enter Movie name:\t”) mv_rating = input(“Enter Movie Rating(out of 5 … Read more

Write a menu driven program in Python that asks the user to add display and search records of students stored in a binary file.

Write a menu driven program in Python that asks the user to add, display, and search records of students stored in a binary file. The student record contains roll no, name and test score. It should be stored in a dictionary object. Your program should pickle the object and save it to a binary file. … Read more

Class 12 IP Half Yearly Sample Paper 2022-23

Class 12 IP Half Yearly Sample Paper 2022-23   General instructions : 1. All questions are compulsory. 2. Marks are indicated against each question. 3. Question paper consist five sections A, B, C, D & E. 4. Section A consist of 21 Questions, one mark each. 5. Section B consist of 14 objective type question, … Read more

Class 11 IP Half Yearly Sample Paper 2022-23

Class 11 IP Half Yearly Sample Paper TIME : 3 HOURS                                           CLASS XI                                                            MM:80 General instructions : 1. All questions are compulsory. 2. Marks are indicated against each question. 3. Question paper consist four sections A, B, C & D. 4. Section A consist of 14 MCQs and 6 Fill in blanks one … Read more

Happy Diwali Python Program using Turtle

Happy Diwali Python Program using Turtle

Send Diwali wishes to your loving ones in cool way. Here we get a cool Happy Diwali Python Program using Turtle module.  Happy Diwali Python Program using Turtle   Source Code: import turtle #turtle.Screen turtle.bgcolor(“black”) turtle.up() turtle.color(“red”) turtle.fillcolor(“red”) # Diya turtle.setpos (-150, 100) turtle.down() turtle.right(90) turtle.begin_fill() turtle.circle(150, 180) turtle.left(90) turtle.forward (300) turtle.end_fill() turtle.up() turtle.color(“black”) turtle.back(150) … Read more

Car Race Python Project using pygame

car1

Car Race Python Project using pygame   Source Code: import pygame, sys from pygame.locals import * import random, time #Initialzing pygame.init() #Setting up FPS FPS = 60 FramePerSec = pygame.time.Clock() #Creating colors BLUE = (0, 0, 255) RED = (255, 0, 0) GREEN = (0, 255, 0) BLACK = (0, 0, 0) WHITE = (255, … Read more

Industrial Gate Management System Python Project

Industrial Gate Management System Python Project   Explanation :  The aim of this project is to manage the visitors/resident record who has entered the industry campus. An industry that also has residential area in its campus has to manage the incoming/outgoing data of visitor either they are the employee, guests, tutor, milkman etc. The project  … Read more

Copywrite © 2020-2026, CBSE Python,
All Rights Reserved