This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| l = input('Enter lowest no.') | |
| h = input('Enter higest no.') | |
| def check_prime(n): | |
| if n < 2: | |
| return False | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Category(models.Model): | |
| name = models.CharField(max_length=200, default='') | |
| slug = models.SlugField(max_length=100,default='',unique=True) | |
| def __unicode__(self): | |
| return self.name | |
| class SubCategory(models.Model): | |
| category = models.ForeignKey(Category) |
NewerOlder