This article analyzes the teaching of programming and computational thinking in students recently admitted at a public university in the Andes of Peru. For this, a survey was carried out on the previous teaching of programming concepts in the schools of origin of the students; also, the computational thinking of these students was evaluated by means of reagents corresponding to the skills of abstraction, decomposition, algorithmic design, generalization and evaluation. In the evaluation of computational thinking, more than 60% of students presented skills of decomposition, abstraction, algorithmic design and evaluation. These results reflect that the students evaluated have competencies in mathematical reasoning exercises that are similar to those required by the reagents used. © 2022 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).