Python program to count total number of vowel,consonant,lowercase,uppercase

Image
Q)Python program to count total no vowel,consonant,lowercase,uppercase. Ans: def ayush(str):     vowels = 0     consonant = 0     lower = 0     upper= 0     for i in range(0, len(str)):          ch = str[i]          if ch.isupper():         upper+=1         elif ch.islower():         lower+=1         if ( (ch >= 'a' and ch <= 'z') or (ch >= 'A' and ch <= 'Z') ):          ch = ch.lower()         if (ch == 'a' or ch == 'e' or ch == 'i' or ch == 'o' or ch == 'u'):         vowels += 1         else:         consonant += 1         else:         pass     print("Vowels:", vowels)     print("Consonant:", consonant)   ...

Hack for chrome dino game(Cheats)

 Fun with chrome dino game 


By applying these code you can make changes into dino game:

step1: Go to chrome browser (Suggestion: it will be good if u open it in incognito mode).

step2: search: chrome://dino.

step3: press ctrl+shift+i ,  choose console option.

step4:  now write code in that console.

step5:  code are as follow:

     (a) for controlling speed writeRunner.instance_.setSpeed(n)                         where n=+ve integer.         

                for eg: Runner.instance_.setSpeed(10000)

(bfor jump (high or low)Runner.instance_.tRex.config.GRAVITY=n

                where  n =+ve real no (suggestion: Don't let 'n' to be very big no).

        for eg:    Runner.instance_.tRex.config.GRAVITY=0.1

(c) if u want to input yours own distance then follow this code:

    code is:Runner.instance_.distance=n / Runner.instance_.distanceMeter.config.COEFFICIENT

                        where n=+ve integer.

        for eg: Runner.instance_.distance=1339 / Runner.instance_.distanceMeter.config.COEFFICIENT

 (d)   if u want to made your dino immortal then follow this code:

            code is:Runner.instance_.gameOver=function(){};

  

  For more help click the video given below๐Ÿ‘‡๐Ÿ‘‡

   

       


                        Thanks for visiting .......


Comments

Popular posts from this blog

Python program to read a text file and display a no of vowels, consonant, uppercase, lowercase character in file

Python Program to rotate the screen of your PC

Python Program for Calculator