Snake case to camel case conversion March 10, 2022Snake Case To Camel Case Converter string = input ( "Enter the string in snake case: " ) print ( string . replace ( "_"...Read More
Camel Case to Snake Case conversion March 10, 2022Convert Camel Case To Snake Case string = input ( "Enter the string in camel case: " ) string = string [ 0 ]. lower () + string ...Read More
Mathematical Operators in python March 08, 2022 # +, - , * , /, // , %, ** print ( 5 + 5 ) print ( 5 - 5 ) print ( 5 * 5 ) print ( 5 / 5 ) print ( 5 / 4 ) print ( 5 // 4 ) print ( 10 % 9...Read More
Variables in Python March 07, 2022 text = "This is Xtra Coding." num = 15 text_me = "hello" # cannot use special character (except _ ) print ( text...Read More
Data Types in Python March 06, 2022a = "hello" b = 12 c = 8.6 print ( type ( a )) print ( type ( b )) print ( b + c ) # print(a+b) #String str #Integer int #Floa...Read More
Print function & Comments March 06, 2022print ( "Hello 'world' World" ) # This code prints hello world print ( 'Hello "world" World' ) print ( 2...Read More
User form form using Tkinter Python February 16, 2022 User Info Form from tkinter import * win = Tk () win . title ( "Form" ) win . configure ( background = "#94ebe9" ) ...Read More
Diamond star series with python February 16, 2022 Diamond Star Series stars = int ( input ( "How many columns do you want of stars: " )) for i in range ( stars , - 1 , - 1 ): ...Read More
Pyramid star series with python February 16, 2022 Pyramid Star Series stars = int ( input ( "How many columns do you want of stars: " )) for i in range ( stars , - 1 , - 1 ): ...Read More
Converting Image to Sketch with Python February 16, 2022 Image to Sketch import cv2 image = cv2 .imread( r "D:\image.jpg" ) grey_img = cv2 .cvtColor( image , cv2 .COLOR_BGR2GRAY) inve...Read More
Rock, Paper, Scissors Game with Python February 16, 2022 Rock, Paper, Scissors import random r_p_s = [ "Rock" , "Paper" , "Scissors" ] ran = random . choice ( r_p...Read More