Posts

Showing posts with the label PYTHON

App engine ERROR SOLVED This application does not exist (app_id=??).

Image
This application does not exist (app_id=). You have to run 2 commands in order to initialise the blank application so  Run this 2 command gcloud config set project project-Id-here gcloud components update gcloud beta app create gcloud beta app create will be installed on your PC if you don't have it .Its 1 MB only You have to do exactly as the error message tells you, which is to run the  gcloud app create  (beta no longer needed) command from a terminal. App Engine is no longer automatically initialized for newly created projects, so you must run this command on a new project before deploying an App Engine app for the first time. __________________________________________________________________________ Also Suggested To check Final Running __________________________________________________________________________

Python Simple Snake Game Project

Image
Hello all,               one of my friend need Python  project so i googled it and find a good one so you can copy it and Enjoy it.. You need 2 things... 1. IDE 2.  import pygame () import pygame, random, sys from pygame.locals import * #AllTRICKS CO LTD def collide(x1, x2, y1, y2, w1, w2, h1, h2): if x1 + w1 > x2 and x1 < x2 + w2 and y1 + h1 > y2 and y1 < y2 + h2: return True     else: return False def die(screen, score): f = pygame.font.SysFont('Arial', 30); t = f.render('Your score was: ' + str(score), True, (0, 0, 0)); screen.blit(t, (10, 270)); pygame.display.update(); pygame.time.wait(2000); sys.exit(0) xs = [290, 290, 290, 290, 290]; ys = [290, 270, 250, 230, 210]; dirs = 0; score = 0; applepos = (random.randint(0, 590), random.randint(0, 590)); pygame.init(); s = pygame.display.set_mode((600, 600)); pygame.display.set_caption('Snake'); appleimage = pygame.Surface((10, 10)); appleimage.fill((0, 255...

Learn to Code With Top 10 Free Online Resources

Image
By Parth Makadiya Computer Programming is one of the vast  field  of computers. You learn to formulate different computer issue and problems with the help of this field. Generally, in Computer Programming you can also learn to code, and it is the main section where programming revolves around. www.alltricks007.blogspot.com Programming covers the programming languages, under coding. Means you have to learn different programming languages, e.g; Java, C++, PHP, JavaScript etc. I have seen many students who are just frustrated with these languages and can’t understand it through books. Actually, this is the natural thing that you get bored while learning something from plain papers, you need to do it practically to understand it. Therefore, we have shared the learn to code with top 10 free online resource list. You can learn to code with the help of these free resources and one more thing that these languages for the codes are also used by the bloggers. They ...