Answer:
mystring = "My name is David Acheme"
count = 0
for i in mystring:
if(i.islower()):
count=count+1
print("The number of lowercase characters in: "+mystring)
print(count)
Explanation:
1. We declare a String Variable and assign a value.
2. Intialize a count variable to zero.
3. Using a for loop is to loop through each characters in the string.
4. The if condition checks when a lower case character is encountered using the islower method and increases count by 1
5. Prints the value of count.
Answer:
How does ICT change our way of living?
ICT has contributed a lot to change our everyday life such as letter to e-mail, market shopping to on-line shopping, classroom learning to e-learning, etc. This paper present's the effects of ICT as Home and Domestic Activities, Social Networking, Education, Health, Commerce, Banking, and Employment.
Answer:
The answer is MAC address.
Explanation:
I'm a tech kid so I love this stuff!!!
Hope this helps! Have a great day! =)
Answer:
The program written in Python is as follows
def fibonac(N):
series = ""
for i in range(0,N+1):
series = series + str(i) + ","
return series[:-1]
N = int(input("Number: "))
print(fibonac(N))
Explanation:
This line defines the function fibonac
def fibonac(N):
This line initializes variable "series" to an empty string
series = ""
This line iterates through the passed argument, N
for i in range(0,N+1):
This line determines the Fibonacci sequence
series = series + str(i) + ","
Lastly, this line returns the Fibonacci sequence
return series[:-1]
The main starts here
The firs line prompts user for input
N = int(input("Number: "))
This line prints the Fibonacci sequence
print(fibonac(N))