62101/how-2-compare-words-read-by-sys-stdin-sys-in-python-3
Hi Alex,
You could use something like this:
import sys pasta = 0 paratha = 0 print("Enter a string") data = sys.stdin.readlines(1) print(data) for words in data: words = data.split(',') for words in data: print(words) if words == 'pasta': pasta+=1 else: paratha+=1 print(pasta) print(paratha)
Hi @Mike. First, read both the csv ...READ MORE
Hey @abhijmr.143, you can print array integers ...READ MORE
readline function help to read line in ...READ MORE
Firstly we will import pandas to read ...READ MORE
suppose you have a string with a ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
The correct, fully Pythonic way to read ...READ MORE
print(pow(3,4)) #this will return the exponentiation of 3 ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.