Computer Science, asked by Mikalo, 4 months ago

Define a function CountBigWords(TFILE) in Python that counts and returns the total number of the words present in a text file TFILE which are more than 6 characters long. TFILE is the name of the text file, passed as an argument in the function.
If the test file TFILE contents are as follows:
I live in New Delhi
New Delhi is the national capital of India
The function CountBigWords() should return: 2

Answers

Answered by Moncheri06
2

Answer:

Here, condition is a boolean expression. It returns either true or false.

if condition evaluates to true, statements inside the body of if are executed

if condition evaluates to false, statements inside the body of if are skipped ℍ ℝℝ ℕ ℕ ℍ ℂℝ ℝ ℍ In computer programming, we use the if statement to control the flow of the program. For example, if a certain condition is met, then run a specific block of code. Otherwise, run another code.

For example assigning grades (A, B, C) based on percentage obtained by a student.

if the percentage is above 90, assign grade A

if the percentage is above 75, assign grade B

if the percentage is above 65, assign grade C

There are three forms of if...else statements in Java.

if statement

if...else statement

if...else if...else statement

Nested if...else statementIn computer programming, we use the if statement to control the flow of the program. For example, if a certain condition is met, then run a specific block of code. Otherwise, run another code.

For example assigning grades (A, B, C) based on percentage obtained by a student.

if the percentage is above 90, assign grade A

if the percentage is above 75, assign grade B

if the percentage is above 65, assign grade C

There are three forms of if...else statements in Java.

if statement

if...else statement

if...else if...else statement

Nested if...else statementHere, condition is a boolean expression. It returns either true or false.

if condition evaluates to true, statements inside the body of if are executed

if condition evaluates to false, statements inside the body of if are skipped ℝℝ ℕ ℕ ℍ ℂℝ ℝ ℍ

Similar questions