Python has a variety of built-in methods that you can use on strings. Note: All string methods return new values. They do not change the original string. Method Description capitalize() …
-
-
Python has various built-in methods that you can use on sets. Method Description add() Adds an element to the set clear() Removes all the elements from the set copy() Returns …
-
Pycairo is a Python module providing bindings for the cairo graphics library Cairo is a 2D graphics library with support for multiple output devices. Currently supported output targets include the …
-
In this article we show you how to turn text to speech in python using gTTS. What is that ? gTTS (Google Text-to-Speech), a Python library and CLI tool to …
-
In this example we will use regular expressions in python to check for a valid IP address This example will check IPv4 and IPv6 address formats Code # Validate IP …
-
In this example we will create a calendar using tkinter and python Code #Importing modules from tkinter import * import calendar #function to show calendar of the year def showCalender(): …
-
In this article we create a simple calculator using Kivy and python Code from kivy.app import App from kivy.uix.button import Button from kivy.uix.boxlayout import BoxLayout from kivy.uix.gridlayout import GridLayout …
-
In this example we print a pyramid star pattern in python Code rows = int(input(“Enter amount of rows = “)) print(“Pattern”) for i in range(0, rows): for j in range(0, …
-
You can use the NumPy savetxt function to save arrays in txt format with different delimiters. NumPy savetxt function will work with 1D and 2D arrays, the numpy savetxt also …
-
In this article we look at Kivy and create our first example using Python Kivy is a free and open source Python framework for developing mobile apps and other multitouch application software with a natural user interface (NUI). It is distributed under the …