Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
Write a Python program that will ask the user to input a string (containing exactly one word). Then your program should print a subsequent substring of the given string.
jwodder
Programming language:
Python
2021-07-18 20:45:53
0
Q:
Write a Python program that will ask the user to input a string (containing exactly one word). Then your program should print a subsequent substring of the given string.
user38210
Code:
Python
2021-06-27 07:54:02
Input : abcd Output : a b c d ab bc cd abc bcd abcd
-2
Tags
string
your
program
user
use
python
int
con
sub
input
then
print
word
Related
Python Program to Count the Occurrences of a Word in a Text File
count substring in string python
Write a Python program to count the number of lines in a text file.
print only strings in list python
Create a function generateString(char, val) that returns a string with val number of char characters concatenated together. For example generateString('a', 7) will return aaaaaaa.
the user to enter their name and display each letter in their name on a separate line python
count number of substrings in a string python
how to print the 3erd character of an input in python
print string letter by letter python
Return the number of times that the string "hi" appears anywhere in the given string. python
count of charactes in string python
Python program to extract characters from various text files and puts them into a list
python print every character in list as string
python count characters in string
how to get any letter of a string python
print first word of a string python and return it
New to Communities?
Join the community