py
py copied to clipboard
Repository to store sample python programs for python learning
if statement operation
operations on lists
strings operations
In code-1 ,The delete statement in the code deletes the id attribute of the emp object. The next try-except block tries to access the id attribute, which throws an error...
import os,sys,time,requests,json,random from colorama import Fore,Back,init B = Fore.BLUE W = Fore.WHITE R = Fore.RED G = Fore.GREEN BL = Fore.BLACK Y = Fore.YELLOW #warna ngab Hijau="\033[1;92m" putih="\033[1;97m" abu="\033[1;90m" kuning="\033[1;93m"...
The issue in your code likely arises from case sensitivity when counting words. If the same word appears in different cases (e.g., "Hello" and "hello"), they will be treated as...