From the course: Statistics and Python for Telecommunication: Using Data Analytics for Decision-Making in Modern Telecommunications
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Loop function in Python - Python Tutorial
From the course: Statistics and Python for Telecommunication: Using Data Analytics for Decision-Making in Modern Telecommunications
Loop function in Python
(light music) - [Instructor] Next is the loops repeat certain task without writing the same code. For example, if you would like to calculate the throughput with the different values, input values of SINR, we don't need to write the code again and again. What we did in the previous slide, where, say for example, this is one equation where we are changing the SINR and then again run the operation for different SINR, which instead of six, it is something else. So we are not going to rewrite the code again. In that case, we can use the loops. And loops, what we are going to do is we're going to use the four particular SINR. We are having certain values. These values will then automatically be selected if we say that within this SINR range, just pick all these SINRs and calculate the throughput values, and the output, in that case, would be coming something like this for individual SINR values. For different input values, we have four different input values. We got four different output…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.