You have given a Python list Write a program to find value 20 in the list and if it is present
برمجة بايثون | Python programming
مهني|Professional
- 2025-03-23
Split a string on hyphens
Write a program to split a given string on hyphens and display each substring.
Given:
str1 = Emma-is-a-data-scientist
Expected Output:
Displaying each substring Emma is a data scientist
Hint:
Use the string function split()
Solution:
هل كان الشرح مفيد؟
شروحات مشابهة
- برمجة بايثون | Python programming
- برمجة | Programming
- برمجة سي شارب | c# programming
- برمجة جافا | Java programming
- برمجة بي اتش بي | Php programming
- برمجة html | Html programming
- برمجة سي اس اس | Css programming
- برمجة روبي | Ruby programming