Final del curso python

--Originally published at Python student

Bien, con esto ya hemos terminado un curso, en el cual pude aprender demasiada  cosas acerca de la programación, como es hacer una simple suma o escribir un "Hola mundo" hasta leer archivos txt, esto es solo el comienzo hacia una vida llena de programas, ya que seguiremos viendo otros lenguajes de programación, seguire publicando en este blog las cosas que poco a poco vaya aprendiendo. :) hasta dentro de unos mese. 

Topicos del curso

--Originally published at Python student

Aqui se muestran los temas que se vieron con los programas.(Cada uno con un link donde podras conocer mas sobre el tema)

  1. Use of comments
  2. Basic output (print)Basic user input (text based)
  3. Calling functionsCreating functions
  4. Importing and using modules/libraries (Creating and using your own modules/libraries)
  5. Use of the conditional “if” , Use of “else” with a conditional (and elif for Python)
  6. Use of loops with “while”
  7. Use of loops with “for”
  8. Creation and use of Lists/Tuples in Python
  9. Creation and use of strings
  10. Validated user input (ensure correct/expected data entry)
  11. Reading and writing of text files
  12. Creation and use of ranges in Python
  13. Creation and use of dictionaries in Python

WSQ12

--Originally published at Python student

In this assignment you will estimate the mathematical constant e. You should create a function called calculuate_e which receives one parameter called precision that should specify the number of decimal points of accuracy.

You will want to use the infinite series to calculate the value, stopping when the accuracy is reached (previous and current calculation are the same at the specified accuracy).



WSQ11

--Originally published at Python student

En este programa se pidio hacer una funcion la cual de un archivo en txt contara las veces que aparece la palabra bananas.(Para que pueda leer el archivo debe de estar el programa en la misma carpeta que el txt)

Aqui dan una explicacion sobre utilizar un lector de archivo txt.:

Metodos de objetos File



WSQ10

--Originally published at Python student


Function should receive a number and return floating point number. Obviously you should test your function, so create a main program that asks the user a value, calculates the square root and displays that.



WSQ09

--Originally published at Python student


Create a function that receives as parameter the name of a file (this would be a string value like data.txt) and y the  function counts the number of lines and the number of characters in the file which it returns as a single value (but with two values). 


WSQ06

--Originally published at Python student

WSQ06: 

Se hizo una función el la cual se saco el factorial de un numero. Antes de esto se pone un "while True:" al incio que es lo que se va a a repetir en el ciclo, para romper el ciclo se debe de poner un "if" e igualarlo a lo que quieres que responda o el valor para que se salgar, pero después de eso se debe de meter un "break" que es lo que indica que se rompe el ciclo.