Reverse string in python | Syntax for reverse() List Method in Python.
Python - reversereverse() method is used to reverse the given list.Flowchart:-Syntax for reverse() List Method in Pythonlist.reverse()Parameter : There is no parameter for reverse()...
Program to assign values of two numbers and print their addition.
In this program we will learn how we can add two digits using C programming, for this we will first get the user to...
Palindrome Program in Java in Hindi
जावा में पैलिंड्रोम संख्या: एक पैलिंड्रोम संख्या एक संख्या है जो रिवर्स के बाद समान होती है। उदाहरण के लिए 545, 151, 34543, 343,...
C Program to calculate Area and Circumference of Circle sirfpadhai
C Program to calculate Area and Circumference of Circle sirfpadhaiयहां हम एक साधारण सी प्रोग्राम लिख रहे हैं जो उपयोगकर्ता द्वारा प्रदान किए गए...
Python: Split a string on the last occurrence of the delimiter| split string last...
Write a python program to split a string on the last occurrence of the delimiter.Program:-str1 = "s,i,r,f,p,a,d,h,a,i"
print(str1.rsplit(',' , 1)
print(str1.rsplit(',' , 2)
print(str1.rsplit(',' , 5)Output:-'s,i,r,f,p,a,d,h,a','i'
's,i,r,f,p,a,d,h', 'a','i'
's,i,r,f,p',...
Python: move spaces to the front of a given string
write a python program to move spaces to the front of a given string.Program:-def move_Spaces_front(str1):
noSpaces_char =
spaces_char = len(str1) - len(nospaces_char)
result = ' '*spaces_char
result...
Program to print Hello World in C++|C++ Hello World Program
Program to print Hello World in C++While writing programs in C or C++, first use Header Files (Preprocessor). This has to be written because...
write a program to print the Fibonacci series in c. |Fibonacci series program in...
write a program to print the Fibonacci series in c.In this program, we will learn how to print the Fibonacci series between 1 to...
Prime Number Program in Java | Write a program to print Prime Number Program...
write a program to print Prime Number Program in Java.import java.util.Scanner;public class Prime
{
public static void main(String args)
{
int num,i,count=0;
System.out.println("Enter a number: ");
Scanner enter = new...
Program to Accept value of base & height and Calculate Area of Triangle c++...
Area of Triangle C++ Program in Hindiसमस्या को समझना:-हमें एक ऐसा प्रोग्राम लिखना होता है जो यूजर से त्रिभुज की तीन भुजाओं को...