Computer Science, asked by PRIYA20020715, 11 months ago

write a python program to print the characters from word the word "GRAPHICS" using for loop .​

Answers

Answered by sushiladevi4418
2

Answer:

Write a python program to print the characters from word the word "GRAPHICS" using for loop.​

Explanation:

# program to split string into character

def split_str(s):     //function

   return [ch for choice in s]

# main code  

string = "GRAPHICS"  

print("string: ", string)

print("split string...")

print(split_str(string))    //print characters

Output:-

string: GRAPHICS

split string...

['G', 'R', 'A', 'P', 'H', 'I', 'C', 'S']

Similar questions