--Originally published at Python Blog
Its to easy to double(x2)and cubed(^3)
Fundamentals of Programming
--Originally published at Python Blog
This program use another function only testing.
If you dont put function it run normally
--Originally published at Python Blog
you use a For loop for search in your list and print in the index.
Remenber the index begin it count in 0.
--Originally published at Python Blog
using the function factorial we obtain the product of the last numbers of factorial.
--Originally published at Python Blog
The while is too easy to use. this is the strucuture.
while(Var_compare == Value):
while(Var_compare >= Value):
--Originally published at Python Blog
Is used to search the values contain any word in the progam.
By(Miguel & Martin)
--Originally published at Python Blog
The fuctions are used for make the progrma more efficient!
This Structure:
def Name_of_Function(N,A):
process
return Variable
And for Calling
Var= Name_of_Function(N,A)
--Originally published at Python Blog
The conditional is fundamental in the programing. Use this Structure.
If(Value==Value):
Elif(Value=!Value):
Else:
--Originally published at Python Blog
This loop is used for count caracters of an phrase.
see the example.
--Originally published at Python Blog
Python has easy format to read and print values. You use this format
Input:
Variable = type_of_variable(input(“The message”))
Output:
print(“Message”,Variable)
**See the value of output dont use (“”) go after (,).
See the program with Basic Input/Output