Coding course in your mobile free part 1

Welcome to the fundamental program concepts.
Here you will crush list,for loop, while loop, functions,and problem-solving skill and more value.
Now, declaring a variable is a piece of cake for you easily create a variable and set a value to it. Like the age variable below. 
Your age 17 if you want keep all the ages of your friends in one place, how could you do that?
Lucky you!There is a way 
You can put more than one value in a variable in unique way.

So start:(1)Append
(2) Len
(3)For loop
(4)Break continue
(5) While loop
(6) Function

(1) Append:To add an element to a list,use the append keyword. The append will add the element at the end. You can consider append as app+end(add+end) to remember that it will add the end.
To remove an element from a list ,use the remove keyword
(1) car.append(' Lamborghini ')
(2)car.append(' BMW ')
(3) car.append (' jaguar ')
(4) print (car)

(2) Len: To know many elements in a list,use Len.
Use the in keyword to see an element exists in a list or not.
(1) numbers=[21,22,13,49]
(2)print(len number)
(3) print (13 in numbers)
(4) print(49 in mums)

(3) For loop: you used a for loop to eat all the fruits in the basket. And now you know how to use a ' for loop ' to loop to loop through a list .
(1) numbers =[12,54,-21,113]
(2)
(3)for numbers in numbers:
(4) print (numbers)
(5) 

(4) Break continue:you know that break will stop a for loop immediately. And the continue keyword win skip the rest part of the current iteration.
(1) Numbers=[12,13,14,45,]
(2)
(3)For number in number:
(4) If number<0:
(5) Break
(6) Print(number)
(7)

(5) While loop: you also used a while loop to run a loop based on condition . If needed,you know how to use  the break and the continue keyword inside a while loop. Besides,you know you should never forget to increase decrease the loop variable.
(1)i=1
(2) sum=0
(3) while<10:
(4) Sum=sum+I
(5) I=I +1
(6) print

(6) Function: Another big things you have learned was the function to do one or more stub tasks 
(1) A function have a name to be called.
(2) You can pass one or more parameters.
(3) If needed you can returned values of a variable from a function.
(1) Def add - number (Frist,second)
(2) Sum=Frist+second
(3) Print (sum)
(4)
(5) Add - number (13,53)

So quiz time:(1) What would be printed as output?
(1) Numbers=[1,2,3,41,49]
(2) X=Len (numbers)-2
(3) y=numbers [X]
(4) Print (y)
So answer : 41
(2) How to find out how many elements are in the drink list below?
Drink=[' Cocoa cola ' Fanta ' coffee ']
Count=______(drink)
Print (Count)
So answer:Len
(3) What would be the value of the count variable?
Numbers=[3,7,5,9]
Numbers.append(7)
Numbers.append(2)
Numbers.pop()
Count=Len (number)
So answer : 5
(4) write the appropriate keyword to dell
 are a add - number function
______add- number(first, second):
return first + second
So answer:Def
(5) What would be the output of the code below?
(1) Def_ number(first+ second)
(2) Return first+second
(3) X=add_numbers(2,3)
(4) y=add_numbers(4,5)
(5)z=add_numbers(X,y)
(6) Print (z)
So answer:14

So try this course and change your life reason this time all so mobile and computer time so not time break and follow your passion and not give up your dreams so some time be motivated your mind and enjoy your life so start you startup and your business and one day you are billinior so try new ideas so next Larry page not build search engine and next mark Zuckerberg not build social media and next bill gates not build operating system so start 0 to 1 idea so read every business book,and success stories book my suggestion you read ' zero to one book so by by.







Post a Comment

0 Comments