6a40871d5bd21bd8786bc340008dfa8d8bf02b05,Print_List_of_Even_Numbers.py,,,#,7

Before Change


if n < 0:
    print_error_messages()

for i in range(n):  // loop till the number n entered by the user
    print(start)  // prints 0 first as it is an even number
    start += 2  // increases the value of start by 2 to get to the next even number

// even numbers are printed starting from 0

After Change


    print_error_messages()


result = "".join(str(i)+"\n" for i in range(0,n+1,2))  // creating string with number "i"
print(result)                                          // in range from 0 till "n" with step 2;
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: geekcomputers/Python
Commit Name: 6a40871d5bd21bd8786bc340008dfa8d8bf02b05
Time: 2020-03-17
Author: 62071377+Msubboti@users.noreply.github.com
File Name: Print_List_of_Even_Numbers.py
Class Name:
Method Name:


Project Name: geekcomputers/Python
Commit Name: 6a40871d5bd21bd8786bc340008dfa8d8bf02b05
Time: 2020-03-17
Author: 62071377+Msubboti@users.noreply.github.com
File Name: Print_List_of_Odd_Numbers.py
Class Name:
Method Name:


Project Name: PIQuIL/QuCumber
Commit Name: 6a9b9a282e8698f7a8c5d66c0e42851bd0c53d2b
Time: 2019-12-23
Author: emerali@users.noreply.github.com
File Name: tests/grads_utils.py
Class Name: ComplexGradsUtils
Method Name: transform_bases